Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ApplyFunc (0.39 sec)

  1. 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
    		})
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (1)
  2. 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))
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 34.4K bytes
    - Viewed (0)
Back to top