summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorEvgeny Yurchenko <ey@tm-k.com>2011-07-19 21:01:54 -0400
committerEvgeny Yurchenko <ey@tm-k.com>2011-07-19 21:01:54 -0400
commit51cd7a1e31fd5018aa465c0de66905e759f2e8cb (patch)
treeb68aa2b7c6755f5ad70b173f333edf60d8e7285d /usr/local/www/services_dhcp.php
parentd58b93d2e434109c98b5b907084cf5a6118e2bf2 (diff)
downloadpfsense-51cd7a1e31fd5018aa465c0de66905e759f2e8cb.zip
pfsense-51cd7a1e31fd5018aa465c0de66905e759f2e8cb.tar.gz
Bug#1688. DHCP server subnet input validation needs to check config.xml, not ifconfig.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 122912d..e818738 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -156,8 +156,8 @@ if (is_array($config['dhcpd'][$if])){
$a_maps = &$config['dhcpd'][$if]['staticmap'];
}
-$ifcfgip = get_interface_ip($if);
-$ifcfgsn = get_interface_subnet($if);
+$ifcfgip = $config['interfaces'][$if]['ipaddr'];
+$ifcfgsn = $config['interfaces'][$if]['subnet'];
/* set the enabled flag which will tell us if DHCP relay is enabled
* on any interface. We will use this to disable DHCP server since
OpenPOWER on IntegriCloud