diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-03 04:16:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-03 04:16:25 +0000 |
commit | e2bce3426dfbc3c74809ad7bcecdd33ceb5c9beb (patch) | |
tree | 877ebc35eb2ac93a682c29f924fe785cfffcce8f /usr | |
parent | 84dd787e757c03d85c9d24b33d479f0a151a4f56 (diff) | |
download | pfsense-e2bce3426dfbc3c74809ad7bcecdd33ceb5c9beb.zip pfsense-e2bce3426dfbc3c74809ad7bcecdd33ceb5c9beb.tar.gz |
Allow reserved IP addresses to fall within the DHCP Server range. DHCPD
does not barf with these changes, so why not?
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 3691ed1..25a34bd 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."; } |