mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 13:47:39 +03:00
Nits
This commit is contained in:
parent
e2e32406fb
commit
58e1410e66
1 changed files with 3 additions and 3 deletions
|
@ -683,7 +683,7 @@ func (proxy *Proxy) processIncomingQuery(clientProto string, serverProto string,
|
|||
target := serverInfo.odohTargets[0]
|
||||
odohQuery, err := target.encryptQuery(query)
|
||||
if err != nil {
|
||||
dlog.Error("Failed to encrypt query")
|
||||
dlog.Errorf("Failed to encrypt query for [%v]", serverName)
|
||||
response = nil
|
||||
} else {
|
||||
targetURL := serverInfo.URL
|
||||
|
@ -694,7 +694,7 @@ func (proxy *Proxy) processIncomingQuery(clientProto string, serverProto string,
|
|||
if err == nil && len(responseBody) > 0 && responseCode == 200 {
|
||||
response, err = odohQuery.decryptResponse(responseBody)
|
||||
if err != nil {
|
||||
dlog.Errorf("Failed to decrypt response from [%v]", serverName)
|
||||
dlog.Warnf("Failed to decrypt response from [%v]", serverName)
|
||||
response = nil
|
||||
}
|
||||
} else if responseCode == 401 {
|
||||
|
@ -711,7 +711,7 @@ func (proxy *Proxy) processIncomingQuery(clientProto string, serverProto string,
|
|||
}
|
||||
response = nil
|
||||
} else {
|
||||
dlog.Errorf("Failed to receive successful response from [%v]", serverName)
|
||||
dlog.Warnf("Failed to receive successful response from [%v]", serverName)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue