# HG changeset patch # User Kim Alvefur # Date 1575047723 -3600 # Node ID 7456eaa83b154e10225408ac33d6d633b930e8d3 # Parent 602dd1e2f399c1907a50f3c1127e60f3b101e276 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 diff -r 602dd1e2f399 -r 7456eaa83b15 plugins/mod_s2s/mod_s2s.lua --- 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