ipv6 fixes
This commit is contained in:
@@ -132,6 +132,7 @@ func NewHTTPClient(token string, maxRetries int, timeoutSecs int, restrictToHost
|
||||
restrictToHostsLen := len(restrictToHosts)
|
||||
randomHost := restrictToHosts[rand.Intn(restrictToHostsLen)]
|
||||
host = randomHost
|
||||
address = net.JoinHostPort(host, port)
|
||||
}
|
||||
}
|
||||
ips, err := net.DefaultResolver.LookupIPAddr(ctx, host)
|
||||
|
||||
Reference in New Issue
Block a user