Comparison

core/stanza_router.lua @ 631:6957fe7b0313

Bounce stanza errors on failed s2s
author Waqas Hussain <waqas20@gmail.com>
date Fri, 19 Dec 2008 01:57:13 +0500
parent 621:cd2cab5400fc
child 640:068130563311
comparison
equal deleted inserted replaced
628:3712d36b6d25 631:6957fe7b0313
84 return; -- FIXME what should we do here? 84 return; -- FIXME what should we do here?
85 end]] -- FIXME 85 end]] -- FIXME
86 86
87 -- FIXME do stanzas not of jabber:client get handled by components? 87 -- FIXME do stanzas not of jabber:client get handled by components?
88 if (origin.type == "s2sin" or origin.type == "c2s") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then 88 if (origin.type == "s2sin" or origin.type == "c2s") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then
89 if origin.type == "s2sin" then 89 if origin.type == "s2sin" and not origin.dummy then
90 local host_status = origin.hosts[from_host]; 90 local host_status = origin.hosts[from_host];
91 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? 91 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server?
92 log("warn", "Received a stanza claiming to be from %s, over a conn authed for %s!", from_host, origin.from_host); 92 log("warn", "Received a stanza claiming to be from %s, over a conn authed for %s!", from_host, origin.from_host);
93 return; -- FIXME what should we do here? does this work with subdomains? 93 return; -- FIXME what should we do here? does this work with subdomains?
94 end 94 end