Comparison

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
comparison
equal deleted inserted replaced
2083:47bfc69fb2d2 2084:ded03b7b040e
252 local session = sessions[request.sid]; 252 local session = sessions[request.sid];
253 if session then 253 if session then
254 if stanza.attr.xmlns == xmlns_bosh then 254 if stanza.attr.xmlns == xmlns_bosh then
255 stanza.attr.xmlns = "jabber:client"; 255 stanza.attr.xmlns = "jabber:client";
256 end 256 end
257 session.ip = request.handler.ip();
257 core_process_stanza(session, stanza); 258 core_process_stanza(session, stanza);
258 end 259 end
259 end 260 end
260 261
261 local dead_sessions = {}; 262 local dead_sessions = {};