Software /
code /
prosody
Changeset
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 |
parents | 10458:602dd1e2f399 |
children | 10460:5ce6cbb5ce6a |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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