Software /
code /
prosody
Diff
plugins/mod_s2s/mod_s2s.lua @ 10459:7456eaa83b15
mod_s2s: Prevent unhandled stanza handler from complaining about stream features on aborted connections
I have no idea why I wrote return false in e5945fb5b71f
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 29 Nov 2019 18:15:23 +0100 |
parent | 10457:0c44090cb168 |
child | 10465:09697a673015 |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Thu Nov 28 18:57:17 2019 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Fri Nov 29 18:15:23 2019 +0100 @@ -196,14 +196,14 @@ condition = "policy-violation", text = "Encrypted server-to-server communication is required but was not offered", }, nil, "Could not establish encrypted connection to remote server"); - return false; + return true; elseif not session.dialback_verifying then session.log("warn", "No SASL EXTERNAL offer and Dialback doesn't seem to be enabled, giving up"); session:close({ condition = "unsupported-feature", text = "No viable authentication method offered", }, nil, "No viable authentication method offered by remote server"); - return false; + return true; end end, -1); end