1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #38445 from thaJeztah/dont_use_deprecated_withdialer

Replace deprecated client.WithDialer()
This commit is contained in:
Sebastiaan van Stijn 2018-12-29 10:47:22 +01:00 committed by GitHub
commit 53bb992c3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ func newTLSAPIClient(host, cacertPath, certPath, keyPath string) (client.APIClie
}
return client.NewClientWithOpts(
client.WithTLSClientConfig(cacertPath, certPath, keyPath),
client.WithDialer(dialer),
client.WithDialContext(dialer.DialContext),
client.WithHost(host))
}