- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for To4 (0.03 sec)
-
cmd/net.go
ipList = set.NewStringSet() for _, ip := range mustGetLocalIPs() { if ip.To4() != nil { ipList.Add(ip.String()) } } return } // mustGetLocalIP6 returns IPv6 addresses of localhost. It panics on error. func mustGetLocalIP6() (ipList set.StringSet) { ipList = set.NewStringSet() for _, ip := range mustGetLocalIPs() { if ip.To4() == nil { ipList.Add(ip.String()) } } return }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jun 19 14:34:00 UTC 2024 - 9.6K bytes - Viewed (1) -
cmd/server-startup-msg.go
} } // Returns true if input is IPv6 func isIPv6(host string) bool { h, _, err := net.SplitHostPort(host) if err != nil { h = host } ip := net.ParseIP(h) return ip.To16() != nil && ip.To4() == nil } // strip api endpoints list with standard ports such as // port "80" and "443" before displaying on the startup // banner. Returns a new list of API endpoints.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Aug 12 18:20:36 UTC 2025 - 6.2K bytes - Viewed (0) -
api/go1.txt
pkg net, method (IP) IsMulticast() bool pkg net, method (IP) IsUnspecified() bool pkg net, method (IP) Mask(IPMask) IP pkg net, method (IP) String() string pkg net, method (IP) To16() IP pkg net, method (IP) To4() IP pkg net, method (IPMask) Size() (int, int) pkg net, method (IPMask) String() string pkg net, method (InvalidAddrError) Error() string pkg net, method (InvalidAddrError) Temporary() bool
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)