diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-03 04:23:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-03 04:23:09 +0000 |
commit | 94010532780eca19076afdf82439c82002bc06d9 (patch) | |
tree | b5384e8f19f4e408b7c058700a6d761cbb376a4b /usr | |
parent | e2bce3426dfbc3c74809ad7bcecdd33ceb5c9beb (diff) | |
download | pfsense-94010532780eca19076afdf82439c82002bc06d9.zip pfsense-94010532780eca19076afdf82439c82002bc06d9.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_edit.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index b579023..44f7a62 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -109,11 +109,6 @@ if ($_POST) { $dynsubnet_end = ip2long($config['dhcpd'][$if]['range']['to']); $lansubnet_start = (ip2long($ifcfg['ipaddr']) & gen_subnet_mask_long($ifcfg['subnet'])); $lansubnet_end = (ip2long($ifcfg['ipaddr']) | (~gen_subnet_mask_long($ifcfg['subnet']))); - - if ((ip2long($_POST['ipaddr']) >= $dynsubnet_start) && - (ip2long($_POST['ipaddr']) <= $dynsubnet_end)) { - $input_errors[] = "Static IP address falls within the dynamic client range."; - } if ((ip2long($_POST['ipaddr']) < $lansubnet_start) || (ip2long($_POST['ipaddr']) > $lansubnet_end)) { $input_errors[] = "The IP address must lie in the {$ifcfg['descr']} subnet."; |