Software /
code /
prosody
Changeset
10841:22f783d80eec
mod_http: Tell luacheck to ignore the long comment lines
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 14 May 2020 16:55:01 +0200 |
parents | 10840:a83bfb266b15 |
children | 10842:5a6ba2f38e2b |
files | plugins/mod_http.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_http.lua Thu May 14 14:59:59 2020 +0200 +++ b/plugins/mod_http.lua Thu May 14 16:55:01 2020 +0200 @@ -208,6 +208,7 @@ 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: