mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
dhcpv6: enabled if auto track (pd doesn't matter)
This commit is contained in:
parent
96bebb13a3
commit
d20c0fbcce
@ -1038,11 +1038,8 @@ function is_dhcpv6_server_enabled()
|
||||
global $config;
|
||||
|
||||
foreach (legacy_config_get_interfaces(array('virtual' => false)) as $ifcfg) {
|
||||
if (isset($ifcfg['enable']) && !empty($ifcfg['track6-interface'])) {
|
||||
$pdlen = calculate_ipv6_delegation_length($ifcfg['track6-interface']);
|
||||
if ($pdlen > 2) {
|
||||
return true;
|
||||
}
|
||||
if (isset($ifcfg['enable']) && !empty($ifcfg['track6-interface']) && !isset($ifcfg['dhcpd6track6allowoverride'])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user