diff options
author | Kim Alvefur <zash@zash.se> | 2019-09-07 17:34:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-09-07 17:34:56 +0200 |
commit | 6f213da0a0d3c6c292f2ba6baebf1238ef4ea13d (patch) | |
tree | b5ca85a18510444a468090fd5706652879d82945 /core | |
parent | 2398f3813579f0f95a14008e1e9f217f60d67bde (diff) | |
download | prosody-6f213da0a0d3c6c292f2ba6baebf1238ef4ea13d.tar.gz prosody-6f213da0a0d3c6c292f2ba6baebf1238ef4ea13d.zip |
core.stanza_router: Handle s2s in more direction-agnostic way
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index d3caeb5d..a74f3b6f 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -111,8 +111,8 @@ function core_process_stanza(origin, stanza) stanza.attr.from = from; end - if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and xmlns == nil then - if origin.type == "s2sin" and not origin.dummy then + if (origin.type == "s2sin" or origin.type == "s2sout" or origin.type == "c2s" or origin.type == "component") and xmlns == nil then + if (origin.type == "s2sin" or origin.type == "s2sout") and not origin.dummy then local host_status = origin.hosts[from_host]; if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? log("warn", "Received a stanza claiming to be from %s, over a stream authed for %s!", from_host, origin.from_host); |