aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-29 18:15:23 +0100
committerKim Alvefur <zash@zash.se>2019-11-29 18:15:23 +0100
commit35d07425e3e09a6d6ec4ca997271bf39f59f15f6 (patch)
tree476b02e82b64b54fea9980b7845163a93c702894
parent53cde4a8a80379f244e09332114ea51964e172e1 (diff)
downloadprosody-35d07425e3e09a6d6ec4ca997271bf39f59f15f6.tar.gz
prosody-35d07425e3e09a6d6ec4ca997271bf39f59f15f6.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
-rw-r--r--plugins/mod_s2s/mod_s2s.lua4
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