1
0
mirror of https://github.com/golang/go synced 2024-09-29 14:14:29 -06:00
This commit is contained in:
Mateusz Poliwczak 2022-11-14 21:45:04 +01:00
parent c47c1b5a75
commit 64810a22bc

View File

@ -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