diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-23 03:25:48 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-23 03:25:48 +0100 |
commit | 7b9daba98a2dde533c0418c7770e059268244d87 (patch) | |
tree | 42aea9b96183d9f7d169e4d0f00b53de9df26c5d | |
parent | 850e8c18b0f06229c8f245c2a39856857815d964 (diff) | |
download | prosody-7b9daba98a2dde533c0418c7770e059268244d87.tar.gz prosody-7b9daba98a2dde533c0418c7770e059268244d87.zip |
mod_bosh: Add log message for clients connecting to unknown host
-rw-r--r-- | plugins/mod_bosh.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 0b39d903..b3e953cc 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -125,6 +125,7 @@ function stream_callbacks.streamopened(request, attr) -- TODO: Sanity checks here (rid, to, known host, etc.) if not hosts[attr.to] then -- Unknown host + log("debug", "BOSH client tried to connect to unknown host: %s", tostring(attr.to)); session_close_reply.attr.condition = "host-unknown"; request:send{ headers = default_headers, body = tostring(session_close_reply) }; request.notopen = nil |