Drop deprecated net.Dialer.DualStack (SA1019).
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:
@@ -357,7 +357,7 @@ func newHTTPTransport() *http.Transport {
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 10 * time.Second, // Faster connection timeout
|
||||
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,
|
||||
|
||||
// Timeout optimizations
|
||||
|
||||
Reference in New Issue
Block a user