From 73959eef714dd876d02d4ca9d28615c6c042c9a1 Mon Sep 17 00:00:00 2001 From: njucjc Date: Mon, 15 Apr 2024 17:52:55 +0800 Subject: [PATCH] chore: remove deprecated DualStack field Signed-off-by: njucjc --- cli/registry/client/endpoint.go | 1 - cli/trust/trust.go | 1 - 2 files changed, 2 deletions(-) diff --git a/cli/registry/client/endpoint.go b/cli/registry/client/endpoint.go index bafd5505f4..1bf0b78eae 100644 --- a/cli/registry/client/endpoint.go +++ b/cli/registry/client/endpoint.go @@ -83,7 +83,6 @@ func getHTTPTransport(authConfig registrytypes.AuthConfig, endpoint registry.API Dial: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, - DualStack: true, }).Dial, TLSHandshakeTimeout: 10 * time.Second, TLSClientConfig: endpoint.TLSConfig, diff --git a/cli/trust/trust.go b/cli/trust/trust.go index 575d48f6de..745cede76f 100644 --- a/cli/trust/trust.go +++ b/cli/trust/trust.go @@ -119,7 +119,6 @@ func GetNotaryRepository(in io.Reader, out io.Writer, userAgent string, repoInfo Dial: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, - DualStack: true, }).Dial, TLSHandshakeTimeout: 10 * time.Second, TLSClientConfig: cfg,