Replace deprecated client.WithDialer()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 8d3feccfa9dd0c0b5d866eba982c89f739b5e5b2) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 2c1307fc901fe13e3b45be71638734bf91a7e70f Component: engine
This commit is contained in:
@@ -141,7 +141,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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user