Inverse test

This commit is contained in:
Frank Denis 2019-11-02 01:20:28 +01:00
parent 6032c3b79b
commit d932d5fdfc
1 changed files with 1 additions and 1 deletions

View File

@ -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 {