Browse Source

Merge pull request #43280 from thaJeztah/remove_deprecated_dualstack

distribution: remove use of deprecated dial.DualStack
Tianon Gravi 3 years ago
parent
commit
c549116f32
2 changed files with 0 additions and 2 deletions
  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{
 	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

+ 0 - 1
registry/registry.go

@@ -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{