Keep resolving if needed

This commit is contained in:
Frank Denis 2019-11-02 01:50:35 +01:00
parent d932d5fdfc
commit a84a789a8a
1 changed files with 1 additions and 1 deletions

View File

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