Software /
code /
prosody
Changeset
4867:b4219d987d05
stanza_router: Fix variable name
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 12 May 2012 03:24:06 +0100 |
parents | 4866:d54999db3aa1 |
children | 4869:1fac86aab90b |
files | core/stanza_router.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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