Software /
code /
prosody
Comparison
core/stanza_router.lua @ 898:8176d224208a
core.stanza_router: Allow routing from components
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 21:42:14 +0000 |
parent | 897:aeb05598dec1 |
child | 924:db022135aed4 |
comparison
equal
deleted
inserted
replaced
897:aeb05598dec1 | 898:8176d224208a |
---|---|
95 log("warn", "stanza recieved for a non-local server"); | 95 log("warn", "stanza recieved for a non-local server"); |
96 return; -- FIXME what should we do here? | 96 return; -- FIXME what should we do here? |
97 end]] -- FIXME | 97 end]] -- FIXME |
98 | 98 |
99 -- FIXME do stanzas not of jabber:client get handled by components? | 99 -- FIXME do stanzas not of jabber:client get handled by components? |
100 if (origin.type == "s2sin" or origin.type == "c2s") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then | 100 if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then |
101 if origin.type == "s2sin" and not origin.dummy then | 101 if origin.type == "s2sin" and not origin.dummy then |
102 local host_status = origin.hosts[from_host]; | 102 local host_status = origin.hosts[from_host]; |
103 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? | 103 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? |
104 log("warn", "Received a stanza claiming to be from %s, over a conn authed for %s!", from_host, origin.from_host); | 104 log("warn", "Received a stanza claiming to be from %s, over a conn authed for %s!", from_host, origin.from_host); |
105 return; -- FIXME what should we do here? does this work with subdomains? | 105 return; -- FIXME what should we do here? does this work with subdomains? |