Bläddra i källkod

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 https://github.com/golang/go/commit/efc185029bf770894defe63cec2c72a4c84b2ee9,
which is included in Go 1.12beta1 and up.

[1]: https://github.com/golang/go/blob/2ebe77a2fda1ee9ff6fd9a3e08933ad1ebaea039/src/net/dial.go#L54-L61

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 år sedan
förälder
incheckning
ff408210da
2 ändrade filer med 0 tillägg och 2 borttagningar
  1. 0 1
      distribution/registry.go
  2. 0 1
      registry/registry.go

+ 0 - 1
distribution/registry.go

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

+ 0 - 1
registry/registry.go

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