From 7e40e9585a5596558d71f76c61bb35316cb17a53 Mon Sep 17 00:00:00 2001 From: Atul Bhosale Date: Tue, 31 Jul 2018 20:09:42 +0530 Subject: Log the remote IP addr of clients behind a proxy [Atul Bhosale, Victor Nawothnig] --- railties/lib/rails/rack/logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib') diff --git a/railties/lib/rails/rack/logger.rb b/railties/lib/rails/rack/logger.rb index 4ea7e40319..3a95b55811 100644 --- a/railties/lib/rails/rack/logger.rb +++ b/railties/lib/rails/rack/logger.rb @@ -50,7 +50,7 @@ module Rails 'Started %s "%s" for %s at %s' % [ request.request_method, request.filtered_path, - request.ip, + request.remote_ip, Time.now.to_default_s ] end -- cgit v1.2.3