Documentation
¶
Index ¶
- Variables
- func AddrPortDetailsFromString(addrPort string) (netip.AddrPort, string, error)
- func ConvertAddrToIP(addr netip.Addr) net.IP
- func ExpandStringTemplate(templateString string, data any) (string, error)
- func FindInterfaceForAddr(a netip.Addr) (string, error)
- func FindInterfaceForIP(ip net.IP) (string, error)
- func GetMyIPs(ctx context.Context) ([]netip.Addr, error)
- func GetMyIPsFromFuncs(ctx context.Context, funcs ...GetIPFunc) ([]netip.Addr, error)
- func GetMyIPv4(ctx context.Context) (netip.Addr, error)
- func GetMyIPv6(ctx context.Context) (netip.Addr, error)
- func TCPAddrFromURL(url *url.URL) (string, error)
- func TCPPortFromURL(url *url.URL) (string, error)
- type DoneConn
- type GetIPFunc
- type RawConn
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TODO: change this to ipv4.myip.dioad.net(A) ipv6.myip.dioad.net (AAAA) and myip.dioad.net(A and AAAA) IPv4ICanHazIP = "http://ipv4.icanhazip.com" IPv6ICanHazIP = "http://ipv6.icanhazip.com" )
Functions ¶
func ExpandStringTemplate ¶
func GetMyIPsFromFuncs ¶ added in v0.45.3
Types ¶
type DoneConn ¶ added in v0.44.0
func NewDoneConn ¶ added in v0.44.0
Click to show internal directories.
Click to hide internal directories.