iputils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ipv4APIUrls = []string{
	"http://whatismyip.akamai.com",
	"http://v4.ipv6-test.com/api/myip.php",
	"http://checkip.amazonaws.com",
	"api.ipify.org",
	"canhazip.com",
	"ident.me",
	"myip.dnsomatic.com",
	"http://members.3322.org/dyndns/getip",
	"http://ifconfig.me/ip",
	"http://ip.3322.net",
	"https://myexternalip.com/raw",
	"http://ipv4.ident.me",
	"http://ipv4.icanhazip.com",
	"http://nsupdate.info/myip",
	"http://ipv4.myip.dk/api/info/IPv4Address",
	"http://checkip4.spdyn.de",
	"http://ipinfo.io/ip",
}
View Source
var Ipv6APIUrls = []string{
	"http://v6.ipv6-test.com/api/myip.php",
	"http://ipv6.ident.me",
	"http://bbs6.ustc.edu.cn/cgi-bin/myip",
	"http://ipv6.icanhazip.com",
	"http://ipv6.yunohost.org",
}

Functions

func GetMyPublicIpv4

func GetMyPublicIpv4() string

func GetMyPublicIpv6

func GetMyPublicIpv6() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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