Browse Source

Replace deprecated client.WithDialer()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 năm trước cách đây
mục cha
commit
8d3feccfa9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      integration/plugin/authz/authz_plugin_test.go

+ 1 - 1
integration/plugin/authz/authz_plugin_test.go

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