From e77251379aba431c05728b505a49b99b25238500 Mon Sep 17 00:00:00 2001 From: bnu Date: Mon, 3 Feb 2014 13:26:32 +0900 Subject: [PATCH] Revert "NOISSUE, Getting a real ip of client, when the server is under a proxy." This reverts commit d49b2307e76e29a357b448728b798f2ea17b3f15. --- config/config.inc.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/config.inc.php b/config/config.inc.php index 0d806ae64..48e01ff77 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -45,11 +45,6 @@ define('_XE_PATH_', str_replace('config/config.inc.php', '', str_replace('\\', ' // Set can use other method instead cookie to store session id(for file upload) ini_set('session.use_only_cookies', 0); -// Set Real IP Address of Client. -if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) -{ - $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; -} if(file_exists(_XE_PATH_ . 'config/package.inc.php')) {