diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 39c943473a..a0b85e7571 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -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;