mod_bosh: Add log message for clients connecting to unknown host

Thu, 23 Apr 2009 03:25:48 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 23 Apr 2009 03:25:48 +0100
changeset 1048
45fc590539cd
parent 1047
8c2d88cda1dd
child 1049
c476bceaf2db

mod_bosh: Add log message for clients connecting to unknown host

plugins/mod_bosh.lua file | annotate | diff | comparison | revisions
--- 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

mercurial