Useful fix for client IP address in plack.log for anyone running Koha behind a proxy
Hi all, Koha::Middleware::RealIP gives you the real client IP address in the Koha code when running Koha behind a proxy. However, I noticed that this real client IP address wasn't showing up in plack.log, and it really started to bug me. I discovered that Koha::Middleware::SetEnv was compromising the flow of the $env variable through the Plack middlewares, but I've fixed it: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33967 It was a crazy-making problem, but it was a very simple fix, and it will make your plack.log files much more useful. Simple yet comprehensive test plan too, so I hope that folk take a look at it. David Cook Senior Software Engineer Prosentient Systems Suite 7.03 6a Glen St Milsons Point NSW 2061 Australia Office: 02 9212 0899 Online: 02 8005 0595
participants (1)
-
David Cook