aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-23 23:05:32 +0200
committerKim Alvefur <zash@zash.se>2012-07-23 23:05:32 +0200
commit679474405392564918f652f8abb78b878f51036f (patch)
treee43e637de5b611053a4b8784e4f72cba8f10ce1d /plugins
parentbe5630627292219cfdee1bbba855648ba395a76e (diff)
downloadprosody-679474405392564918f652f8abb78b878f51036f.tar.gz
prosody-679474405392564918f652f8abb78b878f51036f.zip
mod_bosh: Use new format for headers when checking for proxies to get the originating IP
Diffstat (limited to 'plugins')
-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 8b612286..2ac6b4ed 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -56,7 +56,7 @@ local trusted_proxies = module:get_option_set("trusted_proxies", {"127.0.0.1"}).
local function get_ip_from_request(request)
local ip = request.conn:ip();
- local forwarded_for = request.headers["x-forwarded-for"];
+ local forwarded_for = request.headers.x_forwarded_for;
if forwarded_for then
forwarded_for = forwarded_for..", "..ip;
for forwarded_ip in forwarded_for:gmatch("[^%s,]+") do