From 97e7a93b7c5384da9fe7b136bc8e94e07a3712a8 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 1 Aug 2022 12:24:53 +0200 Subject: [PATCH] interfaces: disable reload with same IPv6 rtsold resolvconf handing forces a lot of reloads now, something also seen in rc.newwanip -- let's go the extra mile and lock the cache IP in place until we do a full reconfigure. We may have to build some sort of "expire" feature for the cached IP since between forced reconnects we will want to reload again anyway. But not sure where that is as rc.linkup is unreliable as it has been messing with this before. --- src/etc/rc.newwanipv6 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/etc/rc.newwanipv6 b/src/etc/rc.newwanipv6 index 23c1db2a0..0fcd6e6b5 100755 --- a/src/etc/rc.newwanipv6 +++ b/src/etc/rc.newwanipv6 @@ -89,14 +89,7 @@ link_interface_to_track6($interface, true); $cacheip_file = "/tmp/{$interface_real}_oldipv6"; $cacheip = trim(@file_get_contents($cacheip_file)); -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 */ - return; - } - } - +if ($ip != $cacheip) { system_routing_configure(false, $interface); plugins_configure('monitor'); filter_configure_sync();