summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-12 13:39:55 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-12 13:39:55 +0000
commita0d1dc5634f97f601b2137514250638a3d9e758c (patch)
treec2b02255ca6f085096267a1cbbe9693a0bfff597 /usr/local/www/services_dhcp.php
parent0c87f8fab56b87122ec197aefdf969f7194a19ad (diff)
downloadpfsense-a0d1dc5634f97f601b2137514250638a3d9e758c.zip
pfsense-a0d1dc5634f97f601b2137514250638a3d9e758c.tar.gz
Ticket #207. Show the dhcp server tab for the interface that have a previous dhcpd configuration.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 700a4f7..523d04e 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -474,7 +474,8 @@ include("head.inc");
$i = 0;
foreach ($iflist as $ifent => $ifname) {
$oc = $config['interfaces'][$ifent];
- if (!is_ipaddr($oc['ipaddr']))
+ if ((is_array($config['dhcpd'][$ifent]) && !isset($config['dhcpd'][$ifent]['enable']) && (!is_ipaddr($oc['ipaddr']))) ||
+ (!is_array($config['dhcpd'][$ifent]) && (!is_ipaddr($oc['ipaddr']))))
continue;
if ($ifent == $if)
$active = true;
OpenPOWER on IntegriCloud