mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-28 00:20:13 +01:00
parent
b67d19ffb3
commit
71e3cf4aef
@ -133,7 +133,11 @@ func (xTransport *XTransport) rebuildTransport() {
|
|||||||
ipOnly := host
|
ipOnly := host
|
||||||
cachedIP, ok := xTransport.loadCachedIP(host, false)
|
cachedIP, ok := xTransport.loadCachedIP(host, false)
|
||||||
if ok {
|
if ok {
|
||||||
ipOnly = cachedIP.String()
|
if ipv4 := cachedIP.To4(); ipv4 != nil {
|
||||||
|
ipOnly = ipv4.String()
|
||||||
|
} else {
|
||||||
|
ipOnly = "[" + cachedIP.String() + "]"
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dlog.Debugf("[%s] IP address was not cached", host)
|
dlog.Debugf("[%s] IP address was not cached", host)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user