From 219eeed6d79a7f18209430cd6ae31fb00d72cbf2 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Thu, 25 Feb 2021 10:16:37 +0100 Subject: [PATCH] fix(webhook): Explicit default tls version and cipher --- apps/emqx_web_hook/src/emqx_web_hook_actions.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/emqx_web_hook/src/emqx_web_hook_actions.erl b/apps/emqx_web_hook/src/emqx_web_hook_actions.erl index 4d5fed64b..bfbc89daa 100644 --- a/apps/emqx_web_hook/src/emqx_web_hook_actions.erl +++ b/apps/emqx_web_hook/src/emqx_web_hook_actions.erl @@ -364,7 +364,11 @@ pool_name(ResId) -> list_to_atom("webhook:" ++ str(ResId)). 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) -> [].