From 0e65c509897724afaf960bbd39530271ee75452a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 6 Apr 2018 02:47:58 +0200 Subject: [PATCH] Do not consider SERVFAIL responses as server failures --- dnscrypt-proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/proxy.go b/dnscrypt-proxy/proxy.go index 3b5cb5d9..42a957b3 100644 --- a/dnscrypt-proxy/proxy.go +++ b/dnscrypt-proxy/proxy.go @@ -314,7 +314,7 @@ func (proxy *Proxy) processIncomingQuery(serverInfo *ServerInfo, clientProto str serverInfo.noticeFailure(proxy) return } - if rcode := Rcode(response); rcode == 2 || rcode == 5 { // SERVFAIL / REFUSED + if rcode := Rcode(response); rcode == 5 { // REFUSED dlog.Infof("Server [%v] returned error code [%v] -- It might be experiencing upstream connectivity issues", serverInfo.Name, rcode) serverInfo.noticeFailure(proxy) } else {