Fixed issue #742: IPs in Sessions list are all 'localhost'.

This commit is contained in:
Thorsten Eckel 2018-10-04 11:57:56 +02:00
parent f5c588be0b
commit a3444472ea

View file

@ -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