[Koha-bugs] [Bug 23068] Add ability for Koha to handle X-Forwarded-For headers so REMOTE_ADDR features work behind a proxy

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 29 09:14:56 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23068

--- Comment #19 from David Cook <dcook at prosentient.com.au> ---
Comment on attachment 94807
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94807
Bug 23068: Add ability for Koha to handle X-Forwarded-For headers so
REMOTE_ADDR features work behind a proxy

Review of attachment 94807:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=23068&attachment=94807)
-----------------------------------------------------------------

::: C4/Context.pm
@@ +1107,5 @@
> +
> +=cut
> +
> +sub set_remote_address {
> +    if ( C4::Context->config('koha_trusted_proxies') ) {

Wouldn't this still be called under Plack?

Couldn't we just look to see if it's Plack via environmental variables and only
do this for CGI?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list