summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-12 09:16:40 -0200
committerRenato Botelho <renato@netgate.com>2016-01-12 09:16:40 -0200
commit6e6d9ca1d4f4690756c297eb16ef92b54a591f5a (patch)
tree6dba32917c2a9334d8638c3e033df981a77640c0 /src
parentf9dd0de04b1d61dcb4539d063ed301fa579be41f (diff)
parent18979f69a1fbe0f338020fb922d5351cd37a81c8 (diff)
downloadpfsense-6e6d9ca1d4f4690756c297eb16ef92b54a591f5a.zip
pfsense-6e6d9ca1d4f4690756c297eb16ef92b54a591f5a.tar.gz
Merge pull request #2410 from stilez/patch-14
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/services_dhcp_edit.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr/local/www/services_dhcp_edit.php b/src/usr/local/www/services_dhcp_edit.php
index 303833c..515245d 100644
--- a/src/usr/local/www/services_dhcp_edit.php
+++ b/src/usr/local/www/services_dhcp_edit.php
@@ -238,10 +238,7 @@ if ($_POST) {
/* make sure it's not within the dynamic subnet */
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 (is_inrange_v4($_POST['ipaddr']), $config['dhcpd'][$if]['range']['from'], $config['dhcpd'][$if]['range']['to'])) {
$input_errors[] = sprintf(gettext("The IP address must not be within the DHCP range for this interface."));
}
OpenPOWER on IntegriCloud