newwanipv6 - revert ipv6 from 8c49c7bfdd as discussed

This commit is contained in:
Ad Schellevis 2022-03-16 21:23:59 +01:00
parent 797c186419
commit 64227e7cb0

View File

@ -84,9 +84,8 @@ system_hosts_generate();
$cacheip_file = "/tmp/{$interface_real}_oldipv6";
$cacheip = trim(@file_get_contents($cacheip_file));
$intf_ipaddr = $config['interfaces'][$interface]['ipaddrv6'];
if ($ip != $cacheip || (!is_ipaddr($intf_ipaddr) && $intf_ipaddr != 'dhcp6')) {
if ($ip != $cacheip || !is_ipaddr($config['interfaces'][$interface]['ipaddrv6'])) {
if ($ip == $cacheip) {
if (in_array($config['interfaces'][$interface]['ipaddr'], array('l2tp', 'ppp', 'pppoe', 'pptp'))) {
/* PPP reconnect loop avoidance */