diff --git a/inc/core.php b/inc/core.php index 741f5bf..79bce76 100644 --- a/inc/core.php +++ b/inc/core.php @@ -601,6 +601,15 @@ function deleteHash($hash) * via https://stackoverflow.com/a/56050595/1174516 */ function isIPInRange( $ip, $range ) { + + if(substr(',',$range)!==false) + { + // we got a list of ranges. splitting + $ranges = array_map('trim',explode(',',$range)); + foreach($ranges as $range) + if(isIPInRange($ip,$range)) return true; + return false; + } // Get mask bits list($net, $maskBits) = explode('/', $range);