mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix logic of is_inrange()
This commit is contained in:
parent
507628d5a2
commit
736698bd60
@ -200,7 +200,7 @@ $ifcfgip = $config['interfaces'][$if]['ipaddr'];
|
||||
$ifcfgsn = $config['interfaces'][$if]['subnet'];
|
||||
|
||||
function is_inrange($test, $start, $end) {
|
||||
if ( (ip2ulong($test) < ip2ulong($end)) && (ip2ulong($test) > ip2ulong($start)) )
|
||||
if ( (ip2ulong($test) <= ip2ulong($end)) && (ip2ulong($test) >= ip2ulong($start)) )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user