Improve random ipv6 log
This commit is contained in:
@@ -202,8 +202,8 @@ func (r *HTTPClient) replaceHostIfNeeded(req *http.Request) {
|
||||
}
|
||||
if !found && !r.CanFetchFirstByte(req.URL.String()) {
|
||||
req.Host = r.ipv6Hosts[rand.Intn(len(r.ipv6Hosts))]
|
||||
r.log.Debugf("Host %s is not a valid IPv6 host, assigning a random IPv6 host: %s", req.URL.Host, req.Host)
|
||||
req.URL.Host = req.Host
|
||||
r.log.Debugf("Host is not a valid IPv6 host, assigning a random IPv6 host: %s", req.Host)
|
||||
} else {
|
||||
r.ipv6Hosts = append(r.ipv6Hosts, req.Host)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user