Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MockLookupIPAddr (0.1 sec)

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

    		unwrapIP := ip.Unmap()
    		if unwrapIP.Is6() {
    			ret = fmt.Sprintf("[%s]", unwrapIP.String())
    		} else {
    			return unwrapIP.String()
    		}
    	}
    	return ret
    }
    
    func MockLookupIPAddr(_ context.Context, _ string) ([]netip.Addr, error) {
    	ret := []netip.Addr{
    		netip.MustParseAddr("2001:db8::68"),
    		netip.MustParseAddr("1.2.3.4"),
    		netip.MustParseAddr("1.2.3.5"),
    	}
    	return ret, nil
    }
    
    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