diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-12-09 11:44:00 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-12-09 11:44:00 +0500 |
commit | 5ff78636e02bf0375c53b19c436f0a419d247c93 (patch) | |
tree | 3c2f4aa9e10b1bb41c2f189b2cff5bda59d6c21e /plugins | |
parent | 3c7605bff46bf3f6368a08cc5d80f3c394a5552d (diff) | |
download | prosody-5ff78636e02bf0375c53b19c436f0a419d247c93.tar.gz prosody-5ff78636e02bf0375c53b19c436f0a419d247c93.zip |
mod_bosh: Fixed use of a private HTTP request property.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
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; |