[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 Feb 18 12:53:45 CET 2020


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

--- Comment #46 from Kyle M Hall <kyle at bywatersolutions.com> ---
koha_trusted_proxies is a config setting from the Koha conf xml file, so
mock_preference won't work on that. You'll want to use mock_config instead.

(In reply to David Cook from comment #45)
> (In reply to Martin Renvoize from comment #44)
> > Thanks David, that's great news.
> 
> Finally getting around to this...
> 
> Have to leave for the night but the following isn't working for some reason:
> 
> t::lib::Mocks::mock_preference('koha_trusted_proxies', '1.1.1.1');
> 
> Will have to look at this more tomorrow...

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


More information about the Koha-bugs mailing list