Software /
code /
prosody-modules
Changeset
3730:ec3eb426271e
mod_warn_legacy_tls: Log a warning attached to sessions using deprecated TLS versions
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Nov 2019 13:29:44 +0100 |
parents | 3729:75299ac7e258 |
children | 3731:406b32b50457 |
files | mod_warn_legacy_tls/mod_warn_legacy_tls.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_warn_legacy_tls/mod_warn_legacy_tls.lua Sun Nov 03 13:14:43 2019 +0100 +++ b/mod_warn_legacy_tls/mod_warn_legacy_tls.lua Sun Nov 03 13:29:44 2019 +0100 @@ -14,6 +14,7 @@ if not ok then module:log("debug", "Could not determine TLS version: %s", protocol); elseif deprecated_protocols:contains(protocol) then + session.log("warn", "Uses %s", protocol); module:add_timer(15, function () if session.type == "c2s" and session.resource then session.send(st.message({ from = host, type = "headline", to = session.full_jid }, warning_message:format(protocol)));