diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |