1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

distribution: remove use of deprecated dial.DualStack

From the field's description [1]:

    DualStack previously enabled RFC 6555 Fast Fallback
    support, also known as "Happy Eyeballs", in which IPv4 is
    tried soon if IPv6 appears to be misconfigured and
    hanging.

    Deprecated: Fast Fallback is enabled by default. To
    disable, set FallbackDelay to a negative value.

This field was deprecated in efc185029b,
which is included in Go 1.12beta1 and up.

[1]: 2ebe77a2fd/src/net/dial.go (L54-L61)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-02-22 16:34:12 +01:00
parent dc8fb8f03b
commit ff408210da
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 0 additions and 2 deletions

View file

@ -68,7 +68,6 @@ func NewV2Repository(
direct := &net.Dialer{ direct := &net.Dialer{
Timeout: 30 * time.Second, Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second, KeepAlive: 30 * time.Second,
DualStack: true,
} }
// TODO(dmcgowan): Call close idle connections when complete, use keep alive // TODO(dmcgowan): Call close idle connections when complete, use keep alive

View file

@ -175,7 +175,6 @@ func NewTransport(tlsConfig *tls.Config) *http.Transport {
direct := &net.Dialer{ direct := &net.Dialer{
Timeout: 30 * time.Second, Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second, KeepAlive: 30 * time.Second,
DualStack: true,
} }
base := &http.Transport{ base := &http.Transport{