Allow reserved IP addresses to fall within the DHCP Server range. DHCPD

does not barf with these changes, so why not?
This commit is contained in:
Scott Ullrich 2008-02-03 04:16:25 +00:00
parent 84dd787e75
commit e2bce3426d

View File

@ -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.";
}