mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 16:24:37 +03:00
update to latest adns, synced with Go's net
This commit is contained in:
13
vendor/github.com/mjl-/adns/conf.go
generated
vendored
13
vendor/github.com/mjl-/adns/conf.go
generated
vendored
@ -157,7 +157,7 @@ func initConfVal() {
|
||||
}
|
||||
}
|
||||
|
||||
// goosPreferCgo reports whether the GOOS value passed in prefers
|
||||
// goosPrefersCgo reports whether the GOOS value passed in prefers
|
||||
// the cgo resolver.
|
||||
func goosPrefersCgo() bool {
|
||||
switch runtime.GOOS {
|
||||
@ -225,16 +225,7 @@ func (c *conf) lookupOrder(r *Resolver, hostname string) (ret hostLookupOrder, d
|
||||
// Go resolver was explicitly requested
|
||||
// or cgo resolver is not available.
|
||||
// Figure out the order below.
|
||||
switch c.goos {
|
||||
case "windows":
|
||||
// TODO(bradfitz): implement files-based
|
||||
// lookup on Windows too? I guess /etc/hosts
|
||||
// kinda exists on Windows. But for now, only
|
||||
// do DNS.
|
||||
fallbackOrder = hostLookupDNS
|
||||
default:
|
||||
fallbackOrder = hostLookupFilesDNS
|
||||
}
|
||||
fallbackOrder = hostLookupFilesDNS
|
||||
canUseCgo = false
|
||||
} else if c.netCgo {
|
||||
// Cgo resolver was explicitly requested.
|
||||
|
Reference in New Issue
Block a user