Revision f2999907
Added by Ermal LUÇI almost 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
4510 | 4510 |
* the communication on WAN will be done over link-local. |
4511 | 4511 |
*/ |
4512 | 4512 |
if (is_array($config['interfaces'][$interface])) { |
4513 |
switch ($config['interfaces'][$interface]['ipaddr']) { |
|
4514 |
case 'pppoe': |
|
4515 |
case 'l2tp': |
|
4516 |
case 'pptp': |
|
4517 |
case 'ppp': |
|
4518 |
if ($config['interfaces'][$interface]['ipaddrv6'] == 'dhcp6') |
|
4519 |
$realif = get_real_interface($interface, "inet6", true); |
|
4520 |
break; |
|
4521 |
} |
|
4513 | 4522 |
if (isset($config['interfaces'][$interface]['dhcp6prefixonly'])) { |
4514 | 4523 |
$curip = find_interface_ipv6_ll($realif, $flush); |
4515 | 4524 |
if ($curip && is_ipaddrv6($curip) && ($curip != "::")) |
Also available in: Unified diff
Add also a special case so the correct ip is returned for the case when WAN is v4 PPP type and v6 is DHCP but with option fetch v6 info from v4.