Skip to content

Commit

Permalink
dhcpd relay, check if interface is active when dhcpd is enabled. closes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis authored and EugenMayer committed Jul 22, 2019
1 parent 0117f13 commit 56a58b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/www/services_dhcp_relay.php
Expand Up @@ -87,13 +87,12 @@
*/
$dhcpd_enabled = false;
if (is_array($config['dhcpd'])) {
foreach($config['dhcpd'] as $dhcp) {
if (isset($dhcp['enable'])) {
foreach($config['dhcpd'] as $intf => $dhcp) {
if (isset($dhcp['enable']) && !empty($config['interfaces'][$intf]['enable'])) {
$dhcpd_enabled = true;
}
}
}

$service_hook = 'dhcrelay';
include("head.inc");
?>
Expand Down

0 comments on commit 56a58b6

Please sign in to comment.