Software /
code /
prosody
Comparison
core/stanza_router.lua @ 1179:503d68e7e18a
stanza_router: s/conn/stream/ in log message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 16 May 2009 20:48:07 +0100 |
parent | 1178:f332c033bfc8 |
child | 1182:89e9f0d555a2 |
comparison
equal
deleted
inserted
replaced
1178:f332c033bfc8 | 1179:503d68e7e18a |
---|---|
105 | 105 |
106 if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and xmlns == "jabber:client" then | 106 if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and xmlns == "jabber:client" then |
107 if origin.type == "s2sin" and not origin.dummy then | 107 if origin.type == "s2sin" and not origin.dummy then |
108 local host_status = origin.hosts[from_host]; | 108 local host_status = origin.hosts[from_host]; |
109 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? | 109 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? |
110 log("warn", "Received a stanza claiming to be from %s, over a conn authed for %s!", from_host, origin.from_host); | 110 log("warn", "Received a stanza claiming to be from %s, over a stream authed for %s!", from_host, origin.from_host); |
111 return; -- FIXME what should we do here? does this work with subdomains? | 111 return; -- FIXME what should we do here? does this work with subdomains? |
112 end | 112 end |
113 end | 113 end |
114 core_post_stanza(origin, stanza); | 114 core_post_stanza(origin, stanza); |
115 else | 115 else |