diff options
author | jim-p <jimp@pfsense.org> | 2011-02-13 19:19:39 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-13 19:19:39 -0500 |
commit | 49e4ebf8348d32e0ecc2dc7f9dc9d1d113c765ca (patch) | |
tree | 958f7844e35bdf7762041734ee26cd088c821a6f /usr/local | |
parent | b5993a02053ce04afac484edd5d07e964d88596b (diff) | |
download | pfsense-49e4ebf8348d32e0ecc2dc7f9dc9d1d113c765ca.zip pfsense-49e4ebf8348d32e0ecc2dc7f9dc9d1d113c765ca.tar.gz |
Fix start/end test for an IP in DHCP pool. Resolves #1280
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 4 |
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.")); } |