Skip to content

Commit

Permalink
dhcpdiv6 relay, check if interface is active when dhcpd is enabled, o…
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis authored and EugenMayer committed Jul 22, 2019
1 parent a8daced commit 750dae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/www/services_dhcpv6_relay.php
Expand Up @@ -85,8 +85,8 @@
*/
$dhcpd_enabled = false;
if (is_array($config['dhcpdv6'])) {
foreach($config['dhcpdv6'] as $dhcp) {
if (isset($dhcp['enable'])) {
foreach($config['dhcpdv6'] as $intf => $dhcp) {
if (isset($dhcp['enable']) && !empty($config['interfaces'][$intf]['enable'])) {
$dhcpd_enabled = true;
}
}
Expand Down

0 comments on commit 750dae1

Please sign in to comment.