fix(webhook): Explicit default tls version and cipher

This commit is contained in:
Zaiming Shi 2021-02-25 10:16:37 +01:00 committed by Shawn
parent fcfcbf139d
commit 219eeed6d7
1 changed files with 5 additions and 1 deletions

View File

@ -364,7 +364,11 @@ pool_name(ResId) ->
list_to_atom("webhook:" ++ str(ResId)). list_to_atom("webhook:" ++ str(ResId)).
get_ssl_options(Config, ResId, <<"https://", _URL/binary>>) -> get_ssl_options(Config, ResId, <<"https://", _URL/binary>>) ->
[{transport, ssl}, {transport_opts, get_ssl_opts(Config, ResId)}]; [{transport, ssl},
{transport_opts, get_ssl_opts(Config, ResId)},
{versions, emqx_tls_lib:default_versions()},
{ciphers, emqx_tls_lib:default_ciphers()}
];
get_ssl_options(_Config, _ResId, _URL) -> get_ssl_options(_Config, _ResId, _URL) ->
[]. [].