Drop deprecated net.Dialer.DualStack (SA1019).
CI / vulncheck (pull_request) Successful in 9s
CI / check-and-test (pull_request) Successful in 36s

Happy Eyeballs is the default since Go 1.12; keep dual-stack behavior
without the deprecated field so golangci-lint v2.13.2 stays green.
This commit is contained in:
s1d3sw1ped_bot
2026-09-01 01:03:10 +00:00
parent 038ad6af66
commit 67f7195ba1
+1 -1
View File
@@ -357,7 +357,7 @@ func newHTTPTransport() *http.Transport {
DialContext: (&net.Dialer{ DialContext: (&net.Dialer{
Timeout: 10 * time.Second, // Faster connection timeout Timeout: 10 * time.Second, // Faster connection timeout
KeepAlive: 60 * time.Second, // Longer keep-alive KeepAlive: 60 * time.Second, // Longer keep-alive
DualStack: true, // Enable dual-stack (IPv4/IPv6) // Dual-stack Happy Eyeballs is the default since Go 1.12 (DualStack is deprecated).
}).DialContext, }).DialContext,
// Timeout optimizations // Timeout optimizations