diff options
Diffstat (limited to 'libgo/go/net/lookup_unix.go')
-rw-r--r-- | libgo/go/net/lookup_unix.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/go/net/lookup_unix.go b/libgo/go/net/lookup_unix.go index c27b1a0..05f49b0 100644 --- a/libgo/go/net/lookup_unix.go +++ b/libgo/go/net/lookup_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net @@ -89,7 +90,7 @@ func (r *Resolver) lookupHost(ctx context.Context, host string) (addrs []string, func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) { if r.preferGo() { - return r.goLookupIP(ctx, host) + return r.goLookupIP(ctx, network, host) } order := systemConf().hostLookupOrder(r, host) if order == hostLookupCgo { @@ -99,7 +100,7 @@ func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs [] // cgo not available (or netgo); fall back to Go's DNS resolver order = hostLookupFilesDNS } - ips, _, err := r.goLookupIPCNAMEOrder(ctx, host, order) + ips, _, err := r.goLookupIPCNAMEOrder(ctx, network, host, order) return ips, err } |