# HG changeset patch # User Kim Alvefur # Date 1575152955 -3600 # Node ID ae906d51e3d2f122e91349c344044e17be096b15 # Parent 5267f12b038df464c3a768baf9292431e396e5f4 mod_s2s: Improve log message about forbidding insecure connections This new wording generator is nice. diff -r 5267f12b038d -r ae906d51e3d2 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Sat Nov 30 21:56:21 2019 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Sat Nov 30 23:29:15 2019 +0100 @@ -763,8 +763,8 @@ end if must_secure and (session.cert_chain_status ~= "valid" or session.cert_identity_status ~= "valid") then - module:log("warn", "Forbidding insecure connection to/from %s", host or session.ip or "(unknown host)"); local reason = friendly_cert_error(session); + module:log("warn", "Forbidding insecure connection to/from %s because its certificate %s", host or session.ip or "(unknown host)", reason); -- XEP-0178 recommends closing outgoing connections without warning -- but does not give a rationale for this. -- In practice most cases are configuration mistakes or forgotten