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 | 9e2f76f84b533944602edd03768dba0e0c7fc59b (patch) | |
tree | 3c2f4aa9e10b1bb41c2f189b2cff5bda59d6c21e /plugins/mod_bosh.lua | |
parent | a67ef03130426331ed9698c7f327ccc12b2d2e78 (diff) | |
download | prosody-9e2f76f84b533944602edd03768dba0e0c7fc59b.tar.gz prosody-9e2f76f84b533944602edd03768dba0e0c7fc59b.zip |
mod_bosh: Fixed use of a private HTTP request property.
Diffstat (limited to 'plugins/mod_bosh.lua')
-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; |