diff options
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 92a7b5e..a9c9dd1 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -69,11 +69,7 @@ staticmaps_sort($if); $a_maps = &$config['dhcpd'][$if]['staticmap']; function is_inrange($test, $start, $end) { - $o_test = sprintf("%u", ip2long($test)); - $o_start = sprintf("%u", ip2long($start)); - $o_end = sprintf("%u", ip2long($end)); - - if ( ($o_test < $o_end) && ($o_test > $o_start) ) + if ( (ip2long($test) < ip2long($end)) && (ip2long($test) > ip2long($start)) ) return true; else return false; |