Software /
code /
prosody
Comparison
core/stanza_router.lua @ 632:8f3db0bd2bb4
Merge from waqas
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Dec 2008 13:29:59 +0000 |
parent | 631:6957fe7b0313 |
child | 640:068130563311 |
comparison
equal
deleted
inserted
replaced
630:e9336adb66e5 | 632:8f3db0bd2bb4 |
---|---|
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 |