Revision 420aa48b
Added by Ermal LUÇI almost 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
4810 | 4810 |
* the communication on WAN will be done over link-local. |
4811 | 4811 |
*/ |
4812 | 4812 |
if (is_array($config['interfaces'][$interface])) { |
4813 |
switch ($config['interfaces'][$interface]['ipaddr']) { |
|
4814 |
case 'pppoe': |
|
4815 |
case 'l2tp': |
|
4816 |
case 'pptp': |
|
4817 |
case 'ppp': |
|
4818 |
if ($config['interfaces'][$interface]['ipaddrv6'] == 'dhcp6') |
|
4819 |
$realif = get_real_interface($interface, "inet6", true); |
|
4820 |
break; |
|
4821 |
} |
|
4813 | 4822 |
if (isset($config['interfaces'][$interface]['dhcp6prefixonly'])) { |
4814 | 4823 |
$curip = find_interface_ipv6_ll($realif, $flush); |
4815 | 4824 |
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.