summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/core/Config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Config.php b/system/core/Config.php
index dfef8dbe4..87ed32aca 100644
--- a/system/core/Config.php
+++ b/system/core/Config.php
@@ -90,7 +90,7 @@ class CI_Config {
{
if (isset($_SERVER['SERVER_ADDR']))
{
- if ((bool) filter_var($_SERVER['SERVER_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
+ if (strpos($_SERVER['SERVER_ADDR'], ':') !== FALSE)
{
$server_addr = '[' . $_SERVER['SERVER_ADDR'] . ']';
}