Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for hasRoutableIP (0.1 sec)

  1. src/vendor/golang.org/x/net/nettest/nettest.go

    		return nil, errNoAvailableInterface
    	}
    	for _, ifi := range ift {
    		if ifi.Flags&flags != flags {
    			continue
    		}
    		if _, ok := hasRoutableIP(network, &ifi); !ok {
    			continue
    		}
    		return &ifi, nil
    	}
    	return nil, errNoAvailableInterface
    }
    
    func hasRoutableIP(network string, ifi *net.Interface) (net.IP, bool) {
    	ifat, err := ifi.Addrs()
    	if err != nil {
    		return nil, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top