mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix logic of v6 version of is_inrange()
This commit is contained in:
parent
5440451927
commit
a78bf0c8b3
@ -145,7 +145,7 @@ if(is_array($dhcrelaycfg)) {
|
||||
}
|
||||
|
||||
function is_inrange($test, $start, $end) {
|
||||
if ( (inet_pton($test) < inet_pton($end)) && (inet_pton($test) > inet_pton($start)) )
|
||||
if ( (inet_pton($test) <= inet_pton($end)) && (inet_pton($test) >= inet_pton($start)) )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user