1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-28 00:20:13 +01:00

Keep resolving if needed

This commit is contained in:
Frank Denis 2019-11-02 01:50:35 +01:00
parent d932d5fdfc
commit a84a789a8a

View File

@ -253,7 +253,7 @@ func (xTransport *XTransport) resolveWithCache(host string) (err error) {
return return
} }
cachedIP, expired := xTransport.loadCachedIP(host) cachedIP, expired := xTransport.loadCachedIP(host)
if !expired { if cachedIP != nil && !expired {
return return
} }
var foundIP net.IP var foundIP net.IP