Documentation ¶
Index ¶
- func ExternalIP(v ...string) string
- func ExternalIPAny(retries ...int) string
- func ExternalIPv4() string
- func ExternalIPv6() string
- func InterfaceAddrs(v ...string) (map[string][]net.IP, error)
- func InternalIP(dstAddr, network string) string
- func InternalIPv4() string
- func InternalIPv6() string
- func LocalIP() string
- func LocalIPv4s() (ips []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceAddrs ¶ added in v0.7.2
InterfaceAddrs 获取所有带 IP 的接口和对应的所有 IP 排除本地链路地址和环回地址
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.