summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-12 13:21:34 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-12 13:21:34 +0000
commit0c87f8fab56b87122ec197aefdf969f7194a19ad (patch)
tree0a2b4e05172142151d0b3e4e6346a5ffe8d25911 /usr/local/www/services_dhcp.php
parent494be6e8507796cdc9eb8c188d26e45ff7d3edec (diff)
downloadpfsense-0c87f8fab56b87122ec197aefdf969f7194a19ad.zip
pfsense-0c87f8fab56b87122ec197aefdf969f7194a19ad.tar.gz
Simplify some code.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 172593e..700a4f7 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -169,10 +169,8 @@ $dhcrelaycfg = $config['dhcrelay'];
if(is_array($dhcrelaycfg)) {
foreach ($dhcrelaycfg as $dhcrelayif => $dhcrelayifconf) {
- if (isset($dhcrelayifconf['enable']) &&
- (($dhcrelayif == "lan") ||
- (isset($config['interfaces'][$dhcrelayif]['enable']) &&
- $config['interfaces'][$dhcrelayif]['if'] && (!link_interface_to_bridge($dhcrelayif)))))
+ if (isset($dhcrelayifconf['enable']) && isset($iflist[$dhcrelayif]) &&
+ (!link_interface_to_bridge($dhcrelayif)))
$dhcrelay_enabled = true;
}
}
OpenPOWER on IntegriCloud