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 |