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
--- 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