# HG changeset patch # User Kim Alvefur # Date 1343077532 -7200 # Node ID f6c1f98419be37bdd3534318f9c2cc0b92964292 # Parent 61083e2b1392455c90f54a7978e555e1ba494fb8 mod_bosh: Use new format for headers when checking for proxies to get the originating IP diff -r 61083e2b1392 -r f6c1f98419be plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Mon Jul 23 18:57:28 2012 +0100 +++ b/plugins/mod_bosh.lua Mon Jul 23 23:05:32 2012 +0200 @@ -56,7 +56,7 @@ 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