aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-12-09 11:44:00 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-12-09 11:44:00 +0500
commit9e2f76f84b533944602edd03768dba0e0c7fc59b (patch)
tree3c2f4aa9e10b1bb41c2f189b2cff5bda59d6c21e
parenta67ef03130426331ed9698c7f327ccc12b2d2e78 (diff)
downloadprosody-9e2f76f84b533944602edd03768dba0e0c7fc59b.tar.gz
prosody-9e2f76f84b533944602edd03768dba0e0c7fc59b.zip
mod_bosh: Fixed use of a private HTTP request property.
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index e45ebeb4..f4b38bfd 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -58,7 +58,7 @@ end
local trusted_proxies = module:get_option_set("trusted_proxies", {"127.0.0.1"})._items;
local function get_ip_from_request(request)
- local ip = request.handler:ip();
+ local ip = request.conn:ip();
local forwarded_for = request.headers["x-forwarded-for"];
if forwarded_for then
forwarded_for = forwarded_for..", "..ip;