diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-05-12 03:24:06 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-05-12 03:24:06 +0100 |
commit | daed96bd73818870315c9d5d63bb200a127dd9ee (patch) | |
tree | 421964fa3ba82964a4cd899ecb44bb30f047d11d | |
parent | 59d26a18515f74ae405fe2014b15d8f8d67b2120 (diff) | |
download | prosody-daed96bd73818870315c9d5d63bb200a127dd9ee.tar.gz prosody-daed96bd73818870315c9d5d63bb200a127dd9ee.zip |
stanza_router: Fix variable name
-rw-r--r-- | core/stanza_router.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 1a3d1322..50044766 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -111,8 +111,8 @@ function core_process_stanza(origin, stanza) 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 |