Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestResolveAddr (0.22 sec)

  1. pilot/pkg/util/network/ip_test.go

    	"net"
    	"net/netip"
    	"strings"
    	"testing"
    )
    
    // The test may run on a system with localhost = 127.0.0.1 or ::1, so we
    // determine that value and use it in the "expected" results for the test
    // cases in TestResolveAddr(). Need to wrap IPv6 addresses in square
    // brackets.
    func determineLocalHostIPString(t *testing.T) string {
    	ips, err := net.DefaultResolver.LookupNetIP(context.Background(), "ip", "localhost")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:15 UTC 2022
    - 6.7K bytes
    - Viewed (0)
Back to top