summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@pfSense.org>2013-12-09 01:06:45 -0800
committerRenato Botelho <garga@pfSense.org>2013-12-09 01:06:45 -0800
commit69116e9817c97a42f4e35addde9af5085468e43b (patch)
tree7ccfbb739b542ac01444e876f6d488795917d36b
parenta364ecd0a207d54e3dbcdb436f3a84c392a5428c (diff)
parent3038ece77732c8c2b8b2415682e3a871b922bfa1 (diff)
downloadpfsense-69116e9817c97a42f4e35addde9af5085468e43b.zip
pfsense-69116e9817c97a42f4e35addde9af5085468e43b.tar.gz
Merge pull request #861 from phil-davis/master
Fix checking DHCP end IP is in range
-rwxr-xr-xetc/rc.initial.setlanip2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 0ad18c7..f5320fd 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -380,7 +380,7 @@ function console_configure_dhcpd($version = 4) {
exit(0);
}
$is_ipaddr = ($version === 6) ? is_ipaddrv6($dhcpendip) : is_ipaddrv4($dhcpendip);
- $is_inrange = is_inrange($dhcpstartip, $subnet_start, $subnet_end);
+ $is_inrange = is_inrange($dhcpendip, $subnet_start, $subnet_end);
if (!$is_inrange)
echo gettext("This IP address must be in the interface's subnet") . "\n";
} while (!$is_ipaddr || !$is_inrange);
OpenPOWER on IntegriCloud