- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for ApplyFunc (0.1 seconds)
-
cmd/net.go
hostIPs, err := getHostIP(host) if err != nil { return false, err } nonInterIPV4s := mustGetLocalIP4().Intersection(hostIPs) if nonInterIPV4s.IsEmpty() { hostIPs = hostIPs.ApplyFunc(func(ip string) string { if net.ParseIP(ip).IsLoopback() { // Any loopback IP which is not 127.0.0.1 // convert it to check for intersections. return "127.0.0.1" } return ip })
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.6K bytes - Click Count (1) -
cmd/endpoint.go
} else { continue } } if net.ParseIP(host) == nil { IPs, err := getHostIP(host) if err != nil { continue } IPsWithPort := IPs.ApplyFunc(func(ip string) string { return net.JoinHostPort(ip, port) }) ipList = ipList.Union(IPsWithPort) } ipList.Add(net.JoinHostPort(host, port)) }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 34.5K bytes - Click Count (0)