summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-13 19:19:39 -0500
committerjim-p <jimp@pfsense.org>2011-02-13 19:19:39 -0500
commit49e4ebf8348d32e0ecc2dc7f9dc9d1d113c765ca (patch)
tree958f7844e35bdf7762041734ee26cd088c821a6f /usr/local/www/services_dhcp_edit.php
parentb5993a02053ce04afac484edd5d07e964d88596b (diff)
downloadpfsense-49e4ebf8348d32e0ecc2dc7f9dc9d1d113c765ca.zip
pfsense-49e4ebf8348d32e0ecc2dc7f9dc9d1d113c765ca.tar.gz
Fix start/end test for an IP in DHCP pool. Resolves #1280
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index cddc8e0..ecde99b 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -150,8 +150,8 @@ if ($_POST) {
if ($_POST['ipaddr']) {
$dynsubnet_start = ip2ulong($config['dhcpd'][$if]['range']['from']);
$dynsubnet_end = ip2ulong($config['dhcpd'][$if]['range']['to']);
- if ((ip2ulong($_POST['ipaddr']) > $dynsubnet_start) &&
- (ip2ulong($_POST['ipaddr']) < $dynsubnet_end)) {
+ if ((ip2ulong($_POST['ipaddr']) >= $dynsubnet_start) &&
+ (ip2ulong($_POST['ipaddr']) <= $dynsubnet_end)) {
$input_errors[] = sprintf(gettext("The IP address must not be within the DHCP range for this interface."));
}
OpenPOWER on IntegriCloud