Koha-clms/Koha/Middleware
Kyle M Hall 13a4b44bc9
Bug 39789: Add ability to specify an alternative header to X-Forwarded-For for finding the real ip address
Some services ( such as CloudFlare ) use alternative heads to X-Forwarded-For. Koha should be able to use a custom header instead of X-Forwarded-For if needed.

This patch updates the feature to allow both the custom header and X-Forwarded-For to work harmoniously

For example, CloudFlare has it's own custom header.
This patch allows a site to be configured for Cloudflare's proxy before the proxy is enabled.

Test Plan:
1) prove t/Koha/Middleware/RealIP.t

Signed-off-by: Lin Wei Li <lin-wei.li@inLibro.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-04-23 16:04:04 -06:00
..
CSRF.pm Bug 39055: Fix login condition when using op and login_op 2026-03-19 10:51:45 +00:00
ContentSecurityPolicy.pm Bug 38365: Use report-to with Reporting-Endpoints 2026-03-16 11:57:18 +01:00
RealIP.pm Bug 39789: Add ability to specify an alternative header to X-Forwarded-For for finding the real ip address 2026-04-23 16:04:04 -06:00
SetEnv.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
UserEnv.pm Bug 36367: Remove _new_userenv 2024-06-14 11:17:17 +01:00