From 5ad20bae0eb7f1cbe0775fac44657a4e464785d2 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 May 2019 10:03:39 +0800 Subject: [PATCH] 1 --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ff10f27b..4887a692 100755 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -340,7 +340,7 @@ class ApplicationController < ActionController::Base def require_login logger.info("########IP: #{request.remote_ip}") - logger.info("########IP: #{request.env['HTTP_X_FORWARDED_FOR']}") + logger.info("########IP: #{request.ip}") if !User.current.logged? # Extract only the basic url parameters on non-GET requests if request.get?