浏览代码

Merge pull request #43280 from thaJeztah/remove_deprecated_dualstack

distribution: remove use of deprecated dial.DualStack
Tianon Gravi 3 年之前
父节点
当前提交
c549116f32
共有 2 个文件被更改,包括 0 次插入2 次删除
  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{