From e2bce3426dfbc3c74809ad7bcecdd33ceb5c9beb Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 3 Feb 2008 04:16:25 +0000 Subject: [PATCH] Allow reserved IP addresses to fall within the DHCP Server range. DHCPD does not barf with these changes, so why not? --- usr/local/www/services_dhcp.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 3691ed1e04..25a34bd651 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -130,14 +130,7 @@ if ($_POST) { $reqdfieldsn = explode(",", "Range begin,Range end"); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - - foreach($a_maps as $mapent) { - if(is_inrange($mapent['ipaddr'], $_POST['range_from'], $_POST['range_to'])) { - $input_errors[] = "{$mapent['ipaddr']} is inside the range you specified."; - } - - } - + if (($_POST['range_from'] && !is_ipaddr($_POST['range_from']))) { $input_errors[] = "A valid range must be specified."; }