mirror of
https://github.com/golang/go
synced 2024-11-08 14:46:20 -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:
parent
bf833ead62
commit
0907b59fa7
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user