Changeset

1048:45fc590539cd

mod_bosh: Add log message for clients connecting to unknown host
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Apr 2009 03:25:48 +0100
parents 1047:8c2d88cda1dd
children 1049:c476bceaf2db
files plugins/mod_bosh.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Thu Apr 23 03:25:11 2009 +0100
+++ b/plugins/mod_bosh.lua	Thu Apr 23 03:25:48 2009 +0100
@@ -125,6 +125,7 @@
 		-- 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