mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
interfaces: on a device node there is no parent to use
Seems to have been in the code for a while. dhcp6usev4iface should have probably been the default all along since otherwise this seeps into the default mode on IPv6 causing it to fail.
This commit is contained in:
parent
8250ad50c3
commit
767d814636
@ -3713,10 +3713,10 @@ function get_real_interface($interface = 'wan', $family = 'all')
|
||||
case 'ppp':
|
||||
case 'l2tp':
|
||||
case 'pptp':
|
||||
if (isset($cfg['dhcp6usev4iface'])) {
|
||||
list ($realif) = get_parent_interface($interface);
|
||||
if (isset($cfg['dhcp6usev4iface']) || strpos($realif, '/') === 0) {
|
||||
/* parent interface not usable on user request or if device node */
|
||||
$realif = $cfg['if'];
|
||||
} else {
|
||||
list ($realif) = get_parent_interface($interface);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user