diff options
author | Kim Alvefur <zash@zash.se> | 2023-06-03 17:10:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-06-03 17:10:04 +0200 |
commit | 8c92b32b7aa5b1457663bf39c4891fcc11fce8e5 (patch) | |
tree | 69ff19018414a17326b47e9b2b33c03acb387319 /util/array.lua | |
parent | 3fbd92e26d9bad1e2e14c7b2d2fe4999fcf53f8a (diff) | |
download | prosody-8c92b32b7aa5b1457663bf39c4891fcc11fce8e5.tar.gz prosody-8c92b32b7aa5b1457663bf39c4891fcc11fce8e5.zip |
mod_http: Use RFC 7239 Forwarded header to find original client IP
Prefer over X-Forwarded-* since it has an actual specification.
Main practical difference is that Forwarded may carry more properties
than only the IP address since it is a structured header.
Since we parse it into an array, it is easier to do the logical thing
and iterate backwards trough proxies until an untrusted one is
encountered. Compare the handling of X-Forwarded-For.
The 'secure' field now accounts for the full chain of proxies, which
must be secure all the way to be considered secure.
Diffstat (limited to 'util/array.lua')
0 files changed, 0 insertions, 0 deletions