1
0
mirror of https://github.com/golang/go synced 2024-11-08 18:16:10 -07:00

net/http: removing DualStack in DefaultTransport

Removing `DualStack` from `http.DefaultTransport` since it is deprecated. 
https://github.com/golang/go/blob/master/src/net/dial.go#L61
This commit is contained in:
ananya saxena 2020-09-05 11:46:07 -04:00 committed by GitHub
parent bf833ead62
commit 0907b59fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,6 @@ var DefaultTransport RoundTripper = &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,
}).DialContext, }).DialContext,
ForceAttemptHTTP2: true, ForceAttemptHTTP2: true,
MaxIdleConns: 100, MaxIdleConns: 100,