From 5ba1e0a59f459b090ca204375d5a9538615aeeef Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Thu, 11 Jan 2024 03:44:39 +0100 Subject: [PATCH] Fix ipv6 stuffs 9 --- pkg/http/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/http/client.go b/pkg/http/client.go index 443501f..3cccccd 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -222,7 +222,7 @@ func (r *HTTPClient) replaceHostIfNeeded(req *http.Request) { } // if host is not an IPv6 host, replace it with a random IPv6 host if !found { - r.log.Warnf("Host %s is not an IPv6 host (ensure you have preferred_hosts properly set in your config.yml, if unset, run `zurg network-test -t ipv6`)", req.URL.Host) + r.log.Warnf("Host %s is not an IPv6 host, replacing with a random IPv6 host (ensure you have preferred_hosts properly set in your config.yml, if unset, run `zurg network-test -t ipv6`)", req.URL.Host) newHost := r.ipv6Hosts[rand.Intn(len(r.ipv6Hosts))] req.Host = newHost req.URL.Host = newHost