Merge pull request #4245 from thaJeztah/remove_deprecated_dualstack

ConfigureHosts: remove deprecated DualStack option
This commit is contained in:
Wei Fu 2020-05-15 08:00:03 +08:00 committed by GitHub
commit 6312b52de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,9 +108,9 @@ func ConfigureHosts(ctx context.Context, options HostOptions) docker.RegistryHos
defaultTransport := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
DualStack: true,
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
FallbackDelay: 300 * time.Millisecond,
}).DialContext,
MaxIdleConns: 10,
IdleConnTimeout: 30 * time.Second,