mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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.
This commit is contained in:
parent
d5707d3357
commit
f299990792
@ -4510,6 +4510,15 @@ function get_interface_ipv6($interface = "wan", $flush = false) {
|
||||
* the communication on WAN will be done over link-local.
|
||||
*/
|
||||
if (is_array($config['interfaces'][$interface])) {
|
||||
switch ($config['interfaces'][$interface]['ipaddr']) {
|
||||
case 'pppoe':
|
||||
case 'l2tp':
|
||||
case 'pptp':
|
||||
case 'ppp':
|
||||
if ($config['interfaces'][$interface]['ipaddrv6'] == 'dhcp6')
|
||||
$realif = get_real_interface($interface, "inet6", true);
|
||||
break;
|
||||
}
|
||||
if (isset($config['interfaces'][$interface]['dhcp6prefixonly'])) {
|
||||
$curip = find_interface_ipv6_ll($realif, $flush);
|
||||
if ($curip && is_ipaddrv6($curip) && ($curip != "::"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user