From 16ad45f8d56be330f8eda8fcb9ac8e38d62e84c7 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 10 May 2017 18:11:01 +0200 Subject: [PATCH] rc: specifically set $oldipv6 to be empty, need to test --- src/etc/rc.newwanipv6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/rc.newwanipv6 b/src/etc/rc.newwanipv6 index c550c2443..28fd20cd0 100755 --- a/src/etc/rc.newwanipv6 +++ b/src/etc/rc.newwanipv6 @@ -127,7 +127,7 @@ if (!is_ipaddrv6($oldipv6) || $curwanipv6 != $oldipv6 || !is_ipaddrv6($config['i return; } } else { - if (does_interface_exist($interface_real)) { + if (is_ipaddrv6($oldipv6) && does_interface_exist($interface_real)) { mwexec("/sbin/ifconfig {$interface_real} inet6 {$oldipv6} delete"); } }