Merge pull request #1475 from thaJeztah/remove_deprecated_dualstack

newTransport(): remove deprecated DualStack option
This commit is contained in:
Mike Brown
2020-05-10 10:13:26 -05:00
committed by GitHub

View File

@@ -425,9 +425,9 @@ func newTransport() *http.Transport {
return &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
DualStack: true,
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
FallbackDelay: 300 * time.Millisecond,
}).DialContext,
MaxIdleConns: 10,
IdleConnTimeout: 30 * time.Second,