- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for lookupIPAddr (0.34 sec)
-
src/net/lookup_test.go
wg.Add(1) go func() { defer wg.Done() gotIPs, err := DefaultResolver.lookupIPAddr(ctx, network, host) if err != nil { t.Errorf("lookupIPAddr(%v, %v): unexpected error: %v", network, host, err) } wantIPs := results[[2]string{network, host}] if !reflect.DeepEqual(gotIPs, wantIPs) { t.Errorf("lookupIPAddr(%v, %v): mismatched IPAddr results\n\tGot: %v\n\tWant: %v", network, host, gotIPs, wantIPs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.4K bytes - Viewed (0) -
pilot/pkg/util/network/ip.go
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) defer cancel() var addrs []netip.Addr var lookupErr error if (len(lookupIPAddr) > 0) && (lookupIPAddr[0] != nil) { // if there are more than one lookup function, ignore all but first addrs, lookupErr = lookupIPAddr[0](ctx, host) } else { addrs, lookupErr = net.DefaultResolver.LookupNetIP(ctx, "ip", host) } if lookupErr != nil || len(addrs) == 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 21:27:21 UTC 2023 - 6.3K bytes - Viewed (0) -
src/net/lookup.go
addrs, err := DefaultResolver.LookupIPAddr(context.Background(), host) if err != nil { return nil, err } ips := make([]IP, len(addrs)) for i, ia := range addrs { ips[i] = ia.IP } return ips, nil } // LookupIPAddr looks up host using the local resolver. // It returns a slice of that host's IPv4 and IPv6 addresses.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 28.6K bytes - Viewed (0) -
src/net/dnsclient_unix_test.go
b.ReportAllocs() for i := 0; i < b.N; i++ { goResolver.LookupIPAddr(ctx, "www.example.com") } } func BenchmarkGoLookupIPNoSuchHost(b *testing.B) { testHookUninstaller.Do(uninstallTestHooks) ctx := context.Background() b.ReportAllocs() for i := 0; i < b.N; i++ { goResolver.LookupIPAddr(ctx, "some.nonexistent") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 72.4K bytes - Viewed (0) -
pkg/registry/core/node/strategy.go
return &url.URL{Scheme: schemeReq, Host: net.JoinHostPort(info.Hostname, portReq)}, proxyTransport, nil } func isProxyableHostname(ctx context.Context, hostname string) error { resp, err := net.DefaultResolver.LookupIPAddr(ctx, hostname) if err != nil { return err } if len(resp) == 0 { return fmt.Errorf("no addresses for hostname") } for _, host := range resp { if !host.IP.IsGlobalUnicast() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 13 23:06:39 UTC 2024 - 9K bytes - Viewed (0) -
src/net/ipsock.go
default: panic("unexpected network: " + net) } } if host == "" { return addrList{inetaddr(IPAddr{})}, nil } // Try as a literal IP address, then as a DNS name. ips, err := r.lookupIPAddr(ctx, net, host) if err != nil { return nil, err } // Issue 18806: if the machine has halfway configured // IPv6 such that it can bind on "::" (IPv6unspecified)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 9.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(*Resolver).LookupAddr", Method, 8}, {"(*Resolver).LookupCNAME", Method, 8}, {"(*Resolver).LookupHost", Method, 8}, {"(*Resolver).LookupIP", Method, 15}, {"(*Resolver).LookupIPAddr", Method, 8}, {"(*Resolver).LookupMX", Method, 8}, {"(*Resolver).LookupNS", Method, 8}, {"(*Resolver).LookupNetIP", Method, 18}, {"(*Resolver).LookupPort", Method, 8},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)