diff options
author | Evgeny Yurchenko <ey@tm-k.com> | 2011-07-19 21:01:54 -0400 |
---|---|---|
committer | Evgeny Yurchenko <ey@tm-k.com> | 2011-07-19 21:01:54 -0400 |
commit | 51cd7a1e31fd5018aa465c0de66905e759f2e8cb (patch) | |
tree | b68aa2b7c6755f5ad70b173f333edf60d8e7285d | |
parent | d58b93d2e434109c98b5b907084cf5a6118e2bf2 (diff) | |
download | pfsense-51cd7a1e31fd5018aa465c0de66905e759f2e8cb.zip pfsense-51cd7a1e31fd5018aa465c0de66905e759f2e8cb.tar.gz |
Bug#1688. DHCP server subnet input validation needs to check config.xml, not ifconfig.
-rwxr-xr-x | usr/local/www/services_dhcp.php | 4 |
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 |