diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-29 18:15:23 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-29 18:15:23 +0100 |
commit | 36483b12ca405c2fab734a2989a63841f99312fb (patch) | |
tree | 476b02e82b64b54fea9980b7845163a93c702894 /plugins/mod_s2s | |
parent | 2de1ed7ca22551ea896afe67283dba4e6aabee0b (diff) | |
download | prosody-36483b12ca405c2fab734a2989a63841f99312fb.tar.gz prosody-36483b12ca405c2fab734a2989a63841f99312fb.zip |
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
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 0fd022cd..7cd90a84 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -196,14 +196,14 @@ function module.add_host(module) 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 |