- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for mustGetLocalIP4 (0.21 sec)
-
cmd/net.go
case *net.IPNet: ip = v.IP case *net.IPAddr: ip = v.IP } ipList = append(ipList, ip) } } return ipList } // mustGetLocalIP4 returns IPv4 addresses of localhost. It panics on error. func mustGetLocalIP4() (ipList set.StringSet) { ipList = set.NewStringSet() for _, ip := range mustGetLocalIPs() { if ip.To4() != nil { ipList.Add(ip.String()) } } return }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Mar 26 15:00:38 GMT 2024 - 9.3K bytes - Viewed (0)