Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for determineLocalHostIPString (0.71 sec)

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

    // 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")
    	if err != nil || len(ips) == 0 {
    		t.Fatalf("Test setup failure - unable to determine IP of localhost: %v", err)
    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