refactor(emqx_ee_connector): use emqx_tls_lib for influx ssl opts

We used to simply pass on SSL options given to the influxdb EE
connector, but we now pass them to emqx_tls_lib instead. This ensures a
proper handling of SSL options and also allow us to use meck to inject
custom options in tests.
This commit is contained in:
Erik Timan 2023-02-09 17:08:36 +01:00
parent cf77dcf25e
commit cfd0e9ebdd
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ ssl_config(SSL = #{enable := true}) ->
[
{https_enabled, true},
{transport, ssl},
{transport_opts, maps:to_list(maps:remove(enable, SSL))}
{transport_opts, emqx_tls_lib:to_client_opts(SSL)}
].
username(#{username := Username}) ->