Replace deprecated client.WithDialer()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2018-12-28 16:10:32 +01:00
parent 3587efed6b
commit 8d3feccfa9
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

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))
}