mirror of
https://github.com/golang/go
synced 2024-10-06 08:00:07 +00:00
oneline
This commit is contained in:
parent
c47c1b5a75
commit
64810a22bc
|
@ -153,8 +153,7 @@ func (c *conf) hostLookupOrder(r *Resolver, hostname string) (ret hostLookupOrde
|
|||
}
|
||||
|
||||
conf := getSystemDNSConfig()
|
||||
if conf.err != nil && !os.IsNotExist(conf.err) &&
|
||||
!os.IsPermission(conf.err) {
|
||||
if conf.err != nil && !os.IsNotExist(conf.err) && !os.IsPermission(conf.err) {
|
||||
// If we can't read the resolv.conf file, assume it
|
||||
// had something important in it and defer to cgo.
|
||||
// libc's resolver might then fail too, but at least
|
||||
|
|
Loading…
Reference in a new issue