changeset 11584 | 9ad5ec65132d |
parent 11534 | a90389e7296c |
child 11731 | f3aee8a825cc |
--- a/plugins/mod_tls.lua Thu May 20 23:18:29 2021 +0200 +++ b/plugins/mod_tls.lua Fri May 21 19:04:01 2021 +0200 @@ -174,3 +174,9 @@ return true; end end); + +module:hook_tag(xmlns_starttls, "failure", function (session, stanza) -- luacheck: ignore 212/stanza + module:log("warn", "TLS negotiation with %s failed.", session.to_host); + session:close(nil, "TLS negotiation failed"); + return false; +end);