--- a/core/stanza_router.lua Sat May 12 03:09:52 2012 +0100
+++ b/core/stanza_router.lua Sat May 12 03:24:06 2012 +0100
@@ -111,8 +111,8 @@
log("warn", "Received a stanza claiming to be from %s, over a stream authed for %s!", from_host, origin.from_host);
origin:close("not-authorized");
return;
- elseif not hosts[to_host] then
- log("warn", "Remote server %s sent us a stanza for %s, closing stream", origin.from_host, to_host);
+ elseif not hosts[host] then
+ log("warn", "Remote server %s sent us a stanza for %s, closing stream", origin.from_host, host);
origin:close("host-unknown");
return;
end