mod_warn_legacy_tls: Log debug message for acceptable TLS versions
authorKim Alvefur <zash@zash.se>
Sun, 03 Nov 2019 13:30:25 +0100
changeset 3735 406b32b50457
parent 3734 ec3eb426271e
child 3736 21cfbdaac767
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.
mod_warn_legacy_tls/mod_warn_legacy_tls.lua
--- a/mod_warn_legacy_tls/mod_warn_legacy_tls.lua	Sun Nov 03 13:29:44 2019 +0100
+++ b/mod_warn_legacy_tls/mod_warn_legacy_tls.lua	Sun Nov 03 13:30:25 2019 +0100
@@ -20,5 +20,7 @@
 				session.send(st.message({ from = host, type = "headline", to = session.full_jid }, warning_message:format(protocol)));
 			end
 		end);
+	else
+		module:log("debug", "Using acceptable TLS version: %s", protocol);
 	end
 end);