From 7602d4119663b234f655e3bb282b7127a048a5cd Mon Sep 17 00:00:00 2001 From: ananya saxena Date: Thu, 15 Oct 2020 17:08:50 +0000 Subject: [PATCH] net/http: remove DualStack in DefaultTransport Removing `DualStack` from `http.DefaultTransport` since it is deprecated https://github.com/golang/go/blob/master/src/net/dial.go#L61 Change-Id: Id8ea1e68796ef8a8d49f7a04d0c4815aa92a1804 GitHub-Last-Rev: 0907b59fa793dafc764188c70487a61a720bbc7c GitHub-Pull-Request: golang/go#41233 Reviewed-on: https://go-review.googlesource.com/c/go/+/253198 Reviewed-by: Damien Neil Reviewed-by: Brad Fitzpatrick Trust: Damien Neil Trust: Brad Fitzpatrick --- src/net/http/transport.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/net/http/transport.go b/src/net/http/transport.go index 4546166430..d5ee5645fb 100644 --- a/src/net/http/transport.go +++ b/src/net/http/transport.go @@ -44,7 +44,6 @@ var DefaultTransport RoundTripper = &Transport{ DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, - DualStack: true, }).DialContext, ForceAttemptHTTP2: true, MaxIdleConns: 100,