From d932d5fdfc6719c94b2182a022f9c86f8b35d4a7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 2 Nov 2019 01:20:28 +0100 Subject: [PATCH] Inverse test --- dnscrypt-proxy/xtransport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/xtransport.go b/dnscrypt-proxy/xtransport.go index df52ca95..108859e8 100644 --- a/dnscrypt-proxy/xtransport.go +++ b/dnscrypt-proxy/xtransport.go @@ -134,7 +134,7 @@ func (xTransport *XTransport) rebuildTransport() { // resolveWithCache() is always called in `Fetch()` before the `Dial()` // method is used, so that a cached entry must be present at this point. cachedIP, _ := xTransport.loadCachedIP(host) - if cachedIP == nil { + if cachedIP != nil { if ipv4 := cachedIP.To4(); ipv4 != nil { ipOnly = ipv4.String() } else {