Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ipAddrs (0.13 sec)

  1. src/net/http/transport_test.go

    	ctx := context.WithValue(context.Background(), nettrace.LookupIPAltResolverKey{}, func(ctx context.Context, network, host string) ([]net.IPAddr, error) {
    		if host != "dns-is-faked.golang" {
    			t.Errorf("unexpected DNS host lookup for %q/%q", network, host)
    			return nil, nil
    		}
    		return []net.IPAddr{{IP: net.ParseIP(ip)}}, nil
    	})
    
    	body := "some body"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    			"Unable to obtain a list of the node's unicast interface addresses."))
    	}
    	for _, addr := range addrs {
    		var ip net.IP
    		switch v := addr.(type) {
    		case *net.IPNet:
    			ip = v.IP
    		case *net.IPAddr:
    			ip = v.IP
    		}
    		if ip.IsLoopback() || ip.IsLinkLocalUnicast() {
    			continue
    		}
    		successTest := test{
    			nodeIP:   ip.String(),
    			success:  true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
Back to top