Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Endpoints = []string{
"https://api.maao.cc/ip/",
"https://d5k.top/ping",
"https://api.ipify.org?format=json",
"https://alanwei.azurewebsites.net/api/tool/ip",
"https://httpbin.org/ip",
"https://ident.me",
"ip.gs",
"ip.sb",
"cip.cc",
"icanhazip.com",
"ipv4.icanhazip.com",
"api.ipify.org",
"ifconfig.me",
"ifconfig.co",
"ipecho.net/plain",
"whatismyip.akamai.com",
"inet-ip.info",
"myip.ipip.net",
"ipinfo.io",
"ifcfg.cn",
"4.ipw.cn",
"members.3322.org/dyndns/getip",
"curlmyip.com",
"ip.appspot.com",
"www.trackip.net/ip",
"https://myexternalip.com/raw",
"http://checkip.amazonaws.com",
"http://myip.dnsomatic.com/",
"http://diagnostic.opendns.com/myip",
}
Functions ¶
func CheckPublicIP ¶
func CheckPublicIP()
func FormatDuration ¶
FormatDuration formats a duration with a precision of 3 digits if it is less than 100s. https://stackoverflow.com/a/68870075
func StunPublicIP ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.