From 557e2965a58484f5ede05c0a9415a60f38095374 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 May 2019 10:00:38 +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 29362dbe..ff10f27b 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_REAL_IP']}") + logger.info("########IP: #{request.env['HTTP_X_FORWARDED_FOR']}") if !User.current.logged? # Extract only the basic url parameters on non-GET requests if request.get?