Mercurial > prosody-modules
comparison mod_warn_legacy_tls/mod_warn_legacy_tls.lua @ 3731:406b32b50457
mod_warn_legacy_tls: Log debug message for acceptable TLS versions
Easy to miss that the module is working as expected and that you're
testing with a non-deprecated TLS version.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Nov 2019 13:30:25 +0100 |
parents | ec3eb426271e |
children |
comparison
equal
deleted
inserted
replaced
3730:ec3eb426271e | 3731:406b32b50457 |
---|---|
18 module:add_timer(15, function () | 18 module:add_timer(15, function () |
19 if session.type == "c2s" and session.resource then | 19 if session.type == "c2s" and session.resource then |
20 session.send(st.message({ from = host, type = "headline", to = session.full_jid }, warning_message:format(protocol))); | 20 session.send(st.message({ from = host, type = "headline", to = session.full_jid }, warning_message:format(protocol))); |
21 end | 21 end |
22 end); | 22 end); |
23 else | |
24 module:log("debug", "Using acceptable TLS version: %s", protocol); | |
23 end | 25 end |
24 end); | 26 end); |