From a3444472eabf3bc15a76b066cdfbd73a1a15d6cc Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 4 Oct 2018 11:57:56 +0200 Subject: [PATCH] Fixed issue #742: IPs in Sessions list are all 'localhost'. --- config/environments/production.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index fe75e46f4..15c68d676 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -80,4 +80,9 @@ Rails.application.configure do # format log config.log_formatter = Logger::Formatter.new + # overwrite default Rails TRUSTED_PROXIES + # because otherwise IPs from private ranges will be + # ignored for Session logging and fall back to localhost + # see https://github.com/zammad/zammad/issues/742 + config.action_dispatch.trusted_proxies = ['127.0.0.1', '::1'] end