go-icloud-private-relay

module
v0.0.0-...-871998b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2021 License: MIT

README

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL