Changeset

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
parents 2083:47bfc69fb2d2
children 2085:64872e216e23
files plugins/mod_bosh.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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