summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it.class b/it.class
index 539cf5a..5a765db 100644
--- a/it.class
+++ b/it.class
@@ -456,11 +456,12 @@ static function is_private_ip($host)
{
if ($ip !== filter_var($ip, FILTER_VALIDATE_IP))
continue;
+ $gotvalidip = true;
if ($ip !== filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE))
return true;
}
- return false;
+ return $gotvalidip ? false : true;
}