stanza_router: Fix variable name
authorMatthew Wild <mwild1@gmail.com>
Sat, 12 May 2012 03:24:06 +0100
changeset 4867 b4219d987d05
parent 4866 d54999db3aa1
child 4869 1fac86aab90b
stanza_router: Fix variable name
core/stanza_router.lua
--- 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