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

@ -110,7 +110,7 @@ func ConfigureHosts(ctx context.Context, options HostOptions) docker.RegistryHos
DialContext: (&net.Dialer{ DialContext: (&net.Dialer{
Timeout: 30 * time.Second, Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second, KeepAlive: 30 * time.Second,
DualStack: true, FallbackDelay: 300 * time.Millisecond,
}).DialContext, }).DialContext,
MaxIdleConns: 10, MaxIdleConns: 10,
IdleConnTimeout: 30 * time.Second, IdleConnTimeout: 30 * time.Second,