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

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