Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGetLocalIP (0.21 sec)

  1. tools/istio-iptables/pkg/config/config_test.go

    	for i := 0; i < len(ips); i++ {
    		var ipAddr net.Addr
    		ipNetAddr := &net.IPNet{IP: net.ParseIP(ips[i].String())}
    		ipAddr = ipNetAddr
    		IPAddrs = append(IPAddrs, ipAddr)
    	}
    	return IPAddrs, nil
    }
    
    func TestGetLocalIP(t *testing.T) {
    	tests := []struct {
    		name     string
    		lipas    func() ([]net.Addr, error)
    		isDS     bool
    		expected bool
    	}{
    		{
    			name: "ipv4 only local ip addresses",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top