mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-03 21:27:37 +03:00
fix false error message
Fix false error message when only 1 resolver on second protocol
This commit is contained in:
parent
2d807ae432
commit
d17e6ccc4a
1 changed files with 2 additions and 4 deletions
|
@ -383,10 +383,8 @@ func (xTransport *XTransport) resolveUsingResolvers(
|
|||
for i, resolver := range resolvers {
|
||||
ip, ttl, err = xTransport.resolveUsingResolver(proto, host, resolver)
|
||||
if err == nil {
|
||||
if i > 0 {
|
||||
dlog.Infof("Resolution succeeded with resolver %s[%s]", proto, resolver)
|
||||
resolvers[0], resolvers[i] = resolvers[i], resolvers[0]
|
||||
}
|
||||
dlog.Infof("Resolution succeeded with resolver %s[%s]", proto, resolver)
|
||||
resolvers[0], resolvers[i] = resolvers[i], resolvers[0]
|
||||
break
|
||||
}
|
||||
dlog.Infof("Unable to resolve [%s] using resolver [%s] (%s): %v", host, resolver, proto, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue