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:
parent
cf77dcf25e
commit
cfd0e9ebdd
|
@ -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}) ->
|
||||
|
|
Loading…
Reference in New Issue