Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Detectors = []Detector{ &STUNDetector{Host: "stun:stun.l.google.com:19302"}, &STUNDetector{Host: "stun:stun1.l.google.com:19302"}, &STUNDetector{Host: "stun:stun2.l.google.com:19302"}, &STUNDetector{Host: "stun:stun3.l.google.com:19302"}, &STUNDetector{Host: "stun:stun4.l.google.com:19302"}, &STUNDetector{Host: "stun:stun.aa.net.uk:3478"}, &STUNDetector{Host: "stun:stun.hoiio.com:3478"}, &STUNDetector{Host: "stun:stun.acrobits.cz:3478"}, &STUNDetector{Host: "stun:stun.voip.blackberry.com:3478"}, &STUNDetector{Host: "stun:stun.sip.us:3478"}, &STUNDetector{Host: "stun:stun.antisip.com:3478"}, &STUNDetector{Host: "stun:stun.avigora.fr:3478"}, &STUNDetector{Host: "stun:stun.linphone.org:3478"}, &STUNDetector{Host: "stun:stun.voipgate.com:3478"}, &STUNDetector{Host: "stun:stun.cope.es:3478"}, &STUNDetector{Host: "stun:stun.bluesip.net:3478"}, &STUNDetector{Host: "stun:stun.solcon.nl:3478"}, &STUNDetector{Host: "stun:stun.uls.co.za:3478"}, &HTTPDetector{Host: "http://inet-ip.info/ip"}, &HTTPDetector{Host: "http://whatismyip.akamai.com/"}, &HTTPDetector{Host: "https://ipecho.net/plain"}, &HTTPDetector{Host: "https://eth0.me/"}, &HTTPDetector{Host: "https://ifconfig.me/ip"}, &HTTPDetector{Host: "https://checkip.amazonaws.com/"}, &HTTPDetector{Host: "https://wgetip.com/"}, &HTTPDetector{Host: "https://ip.tyk.nu/"}, &HTTPDetector{Host: "https://l2.io/ip"}, &HTTPDetector{Host: "https://api.ipify.org/"}, &HTTPDetector{Host: "https://myexternalip.com/raw"}, &HTTPDetector{Host: "https://icanhazip.com"}, &HTTPDetector{Host: "https://ifconfig.io/ip"}, &HTTPDetector{Host: "https://ifconfig.co/ip"}, &HTTPDetector{Host: "https://ipinfo.io/ip"}, &HTTPDetector{Host: "https://wtfismyip.com/text"}, &DNSDetector{Domain: "myip.opendns.com.", Server: "resolver1.opendns.com:53", QueryType: "A"}, &DNSDetector{Domain: "myip.opendns.com.", Server: "resolver2.opendns.com:53", QueryType: "A"}, &DNSDetector{Domain: "myip.opendns.com.", Server: "resolver3.opendns.com:53", QueryType: "A"}, &DNSDetector{Domain: "myip.opendns.com.", Server: "resolver4.opendns.com:53", QueryType: "A"}, &DNSDetector{Domain: "whoami.akamai.net.", Server: "ns1-1.akamaitech.net:53", QueryType: "A"}, &DNSDetector{Domain: "whoami.ultradns.net.", Server: "pdns1.ultradns.net:53", QueryType: "A"}, &DNSDetector{Domain: "o-o.myaddr.l.google.com.", Server: "ns1.google.com:53", QueryType: "TXT"}, }
Functions ¶
Types ¶
type DNSDetector ¶
DNSDetector is a struct for configuring DNS queries. It contains the domain to query, the DNS server to use, and the type of DNS query.
type HTTPDetector ¶
type HTTPDetector struct {
Host string
}
HTTPDetector is a struct for configuring HTTP queries. It contains the host to query for IP discovery.
type STUNDetector ¶
type STUNDetector struct {
Host string
}
STUNDetector is used to discover IP address via STUN protocol. It contains the host of the STUN server.
Click to show internal directories.
Click to hide internal directories.