Skip to content

kmikiy/go-icloud-private-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-icloud-private-relay

Go Reference Go Report Card

Go package that detects iCloud Private Relay IP address based on ICloud's egress ip range list. More information about how to prepare your network for iCloud Private Relay can be found here.

Installation

go get github.com/kmikiy/go-icloud-private-relay

Usage

package main

import (
	"fmt"

	"github.com/kmikiy/go-icloud-private-relay/relay"
)

func main() {
	isICloudPrivateRelayAddress := relay.IsICloudPrivateRelayAddress("172.225.18.12")
	fmt.Println(isICloudPrivateRelayAddress) // true

	isICloudPrivateRelayAddress = relay.IsICloudPrivateRelayAddress("142.251.39.14")
	fmt.Println(isICloudPrivateRelayAddress) // false
}

About

Detect iCloud Private Relay IP Addresses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages