- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for lookupIPAddr (0.23 sec)
-
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) -
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)