aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-14 16:55:01 +0200
committerKim Alvefur <zash@zash.se>2020-05-14 16:55:01 +0200
commit21af26d1a109f4e596d69df52aecc1b5755bbf94 (patch)
tree61882079cd7cf33e1de56f33932591e17ac5f2c4 /plugins
parent1e270c57c7d024b9fd313c7e9b66ead56a23d775 (diff)
downloadprosody-21af26d1a109f4e596d69df52aecc1b5755bbf94.tar.gz
prosody-21af26d1a109f4e596d69df52aecc1b5755bbf94.zip
mod_http: Tell luacheck to ignore the long comment lines
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index b89ff21c..3bacae61 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -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: