- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for LocalIPAddrs (0.15 sec)
-
tools/istio-iptables/pkg/config/config_test.go
netip.MustParseAddr("2222:3333::1"), }) }, isDS: true, expected: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { LocalIPAddrs = tt.lipas _, isV6, err := getLocalIP(tt.isDS) if err != nil { t.Errorf("getLocalIP err: %s", err) } if isV6 != tt.expected {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 2.6K bytes - Viewed (0) -
tools/istio-iptables/pkg/config/config.go
} // mock net.InterfaceAddrs to make its unit test become available var ( LocalIPAddrs = net.InterfaceAddrs ) // getLocalIP returns one of the local IP address and it should support IPv6 or not func getLocalIP(dualStack bool) (netip.Addr, bool, error) { var isIPv6 bool var ipAddrs []netip.Addr addrs, err := LocalIPAddrs() if err != nil { return netip.Addr{}, isIPv6, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 9.2K bytes - Viewed (0)