From 8bdcfef9801eb7f192f4eb0ccd17151b13562d29 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 21 Aug 2019 10:11:44 +0800 Subject: [PATCH] * finish task #6243. --- framework/base/helper.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/helper.class.php b/framework/base/helper.class.php index cea53d858c..02c7a5861b 100644 --- a/framework/base/helper.class.php +++ b/framework/base/helper.class.php @@ -699,7 +699,7 @@ function isLocalIP() global $config; if(isset($config->islocalIP)) return $config->isLocalIP; $serverIP = $_SERVER['SERVER_ADDR']; - if($serverIP == '127.0.0.1') return true; + if($serverIP == '127.0.0.1' or $serverIP == '::1') return true; if(strpos($serverIP, '10.70') !== false) return false; return !filter_var($serverIP, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE); }