rc: specifically set $oldipv6 to be empty, need to test

This commit is contained in:
Franco Fichtner 2017-05-10 18:11:01 +02:00
parent 43fa1b861a
commit 16ad45f8d5

View File

@ -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");
}
}