mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-03 21:27:37 +03:00
Skip lying resolvers instead of just warning about them
This commit is contained in:
parent
c4879a21f7
commit
4fbdf2cfcc
1 changed files with 2 additions and 2 deletions
|
@ -706,7 +706,7 @@ func fetchDoHServerInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, isN
|
|||
return ServerInfo{}, err
|
||||
}
|
||||
if msg.Rcode != dns.RcodeNameError {
|
||||
dlog.Criticalf("[%s] may be a lying resolver", name)
|
||||
return ServerInfo{}, fmt.Errorf("[%s] may be a lying resolver -- skipping", name)
|
||||
}
|
||||
protocol := tls.NegotiatedProtocol
|
||||
if len(protocol) == 0 {
|
||||
|
@ -869,7 +869,7 @@ func _fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, i
|
|||
return ServerInfo{}, err
|
||||
}
|
||||
if msg.Rcode != dns.RcodeNameError {
|
||||
dlog.Criticalf("[%s] may be a lying resolver", name)
|
||||
return ServerInfo{}, fmt.Errorf("[%s] may be a lying resolver -- skipping", name)
|
||||
}
|
||||
protocol := "http"
|
||||
tlsVersion := uint16(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue