mod_bosh: Update for new connection API
authorMatthew Wild <mwild1@gmail.com>
Thu, 17 Dec 2009 20:28:32 +0000 (20:28 +0000)
committerMatthew Wild <mwild1@gmail.com>
Thu, 17 Dec 2009 20:28:32 +0000 (20:28 +0000)
plugins/mod_bosh.lua

index db70006c560203cf856f82088bd660f611d0f354..bc31b3a13c8140de5424763277d4bfbd20b57628 100644 (file)
@@ -254,7 +254,7 @@ function stream_callbacks.handlestanza(request, stanza)
                if stanza.attr.xmlns == xmlns_bosh then
                        stanza.attr.xmlns = "jabber:client";
                end
-               session.ip = request.handler.ip();
+               session.ip = request.handler:ip();
                core_process_stanza(session, stanza);
        end
 end