mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_http: Tell luacheck to ignore the long comment lines
This commit is contained in:
parent
d6de70d19f
commit
d689f6c9a1
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ local function get_ip_from_request(request)
|
|||
local ip = request.conn:ip();
|
||||
local forwarded_for = request.headers.x_forwarded_for;
|
||||
if forwarded_for then
|
||||
-- luacheck: ignore 631
|
||||
-- This logic looks weird at first, but it makes sense.
|
||||
-- The for loop will take the last non-trusted-proxy IP from `forwarded_for`.
|
||||
-- We append the original request IP to the header. Then, since the last IP wins, there are two cases:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue