Fix ipv6 stuffs 5
This commit is contained in:
@@ -120,6 +120,7 @@ func NewHTTPClient(token string, maxRetries int, timeoutSecs int, ensureIPv6Host
|
||||
log.Warnf("Failed to fetch IPv6 hosts: %v", err)
|
||||
}
|
||||
client.ipv6Hosts = ipv6List
|
||||
log.Debugf("Fetched %d IPv6 hosts", len(ipv6List))
|
||||
|
||||
// set ipv6 transport
|
||||
dialer := &net.Dialer{}
|
||||
@@ -234,5 +235,6 @@ func (r *HTTPClient) replaceHostIfNeeded(req *http.Request) {
|
||||
newURL := *req.URL
|
||||
newURL.Host = newHost
|
||||
req.URL = &newURL
|
||||
r.log.Warnf("Replaced host %s with %s", host, newHost)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user