This commit is contained in:
Frank Denis 2023-08-11 01:39:15 +02:00
parent 32aad7bb34
commit 2481fbebd7
1 changed files with 1 additions and 2 deletions

View File

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