Diff

plugins/mod_bosh.lua @ 2084:ded03b7b040e

mod_bosh: Set session.ip for BOSH sessions.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 18 Nov 2009 06:22:52 +0500
parent 2077:e33658f6052c
child 2099:73e083d01449
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Wed Nov 18 06:21:59 2009 +0500
+++ b/plugins/mod_bosh.lua	Wed Nov 18 06:22:52 2009 +0500
@@ -254,6 +254,7 @@
 		if stanza.attr.xmlns == xmlns_bosh then
 			stanza.attr.xmlns = "jabber:client";
 		end
+		session.ip = request.handler.ip();
 		core_process_stanza(session, stanza);
 	end
 end