Commit b0d08d50 authored by Franco Fichtner's avatar Franco Fichtner

rc: put back PPP loop avoidance

parent a84f3c0d
......@@ -119,7 +119,12 @@ if (!is_ipaddrv6($oldipv6) || $curwanipv6 != $oldipv6 || !is_ipaddrv6($config['i
system_routing_configure($interface);
setup_gateways_monitor();
if (is_ipaddrv6($oldipv6) && $curwanipv6 != $oldipv6) {
if ($curwanipv6 == $oldipv6) {
if (in_array($config['interfaces'][$interface]['ipaddrv6'], array('pppoe', 'pptp', 'ppp'))) {
/* PPP reconnect loop avoidance */
return;
}
} elseif (is_ipaddrv6($oldipv6)) {
if (does_interface_exist($interface_real)) {
mwexec("/sbin/ifconfig {$interface_real} inet6 {$oldipv6} delete");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment