Mercurial > prosody-hg
diff core/stanza_router.lua @ 4867:b4219d987d05
stanza_router: Fix variable name
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 12 May 2012 03:24:06 +0100 |
| parents | b98154bbe0e0 |
| children | 6f5b53cb3565 |
line wrap: on
line diff
--- 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
