Revert b898e07066
This commit is contained in:
parent
32aad7bb34
commit
2481fbebd7
|
@ -9,7 +9,6 @@ import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"io"
|
"io"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net"
|
"net"
|
||||||
|
@ -463,7 +462,7 @@ func (xTransport *XTransport) resolveAndUpdateCache(host string) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if foundIP == nil {
|
if foundIP == nil {
|
||||||
return fmt.Errorf("no IP address found for [%s]", host)
|
dlog.Errorf("no IP address found for [%s]", host)
|
||||||
}
|
}
|
||||||
xTransport.saveCachedIP(host, foundIP, ttl)
|
xTransport.saveCachedIP(host, foundIP, ttl)
|
||||||
dlog.Debugf("[%s] IP address [%s] added to the cache, valid for %v", host, foundIP, ttl)
|
dlog.Debugf("[%s] IP address [%s] added to the cache, valid for %v", host, foundIP, ttl)
|
||||||
|
|
Loading…
Reference in New Issue