Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PrivateNetworks = []string{
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
}
Ranges of addresses allocated by IANA for private internets, as per RFC1918.
Functions ¶
func GetHostIPs ¶
GetHostIPs returns a list of IP addresses of all host's interfaces.
func GetPrivateHostIPs ¶
GetPrivateHostIPs returns a list of host's private IP addresses.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.