Quellcode durchsuchen

fix(webhook): Explicit default tls version and cipher

Zaiming Shi vor 5 Jahren
Ursprung
Commit
219eeed6d7
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      apps/emqx_web_hook/src/emqx_web_hook_actions.erl

+ 5 - 1
apps/emqx_web_hook/src/emqx_web_hook_actions.erl

@@ -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) ->
     [].
     [].