mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
interfaces: enable IPv6 early on trackers for #6855
This seems to be required nowadays to prevent missing link-local address until an IPv6 is assigned, then it magically works anyway.
This commit is contained in:
parent
22650b7184
commit
02b6085023
@ -2386,6 +2386,9 @@ function interface_track6_configure($interface, $lancfg, $reload = false)
|
||||
return;
|
||||
}
|
||||
|
||||
$realifv6 = get_real_interface($interface, 'inet6');
|
||||
mwexecf('/sbin/ifconfig %s inet6 %sifdisabled', [$realifv6, isset($lancfg['enable']) ? '-' : '']);
|
||||
|
||||
switch ($trackcfg['ipaddrv6']) {
|
||||
case '6to4':
|
||||
interface_track6_6to4_configure($interface, $lancfg);
|
||||
@ -2394,10 +2397,7 @@ function interface_track6_configure($interface, $lancfg, $reload = false)
|
||||
interface_track6_6rd_configure($interface, $lancfg);
|
||||
break;
|
||||
case 'slaac':
|
||||
mwexecf('/sbin/ifconfig %s inet6 accept_rtadv %sifdisabled', [
|
||||
get_real_interface($interface, 'inet6'),
|
||||
isset($lancfg['enable']) ? '-' : '',
|
||||
]);
|
||||
mwexecf('/sbin/ifconfig %s inet6 accept_rtadv', [$realifv6]);
|
||||
/* FALLTHROUGH */
|
||||
case 'dhcp6':
|
||||
if ($reload || !isset($lancfg['enable'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user