Commit b792c9fb authored by Franco Fichtner's avatar Franco Fichtner

rc: fix issues with bogus renewal

parent c2e0d912
...@@ -115,11 +115,11 @@ system_hosts_generate(); ...@@ -115,11 +115,11 @@ system_hosts_generate();
* Even with the same IP the VPN software is unhappy with the IP disappearing, and we * Even with the same IP the VPN software is unhappy with the IP disappearing, and we
* could be failing back in which case we need to switch IPs back anyhow. * could be failing back in which case we need to switch IPs back anyhow.
*/ */
if (!is_ipaddr($oldipv6) || $curwanipv6 != $oldipv6 || !is_ipaddrv6($config['interfaces'][$interface]['ipaddrv6'])) { if (!is_ipaddrv6($oldipv6) || $curwanipv6 != $oldipv6 || !is_ipaddrv6($config['interfaces'][$interface]['ipaddrv6'])) {
system_routing_configure($interface); system_routing_configure($interface);
setup_gateways_monitor(); setup_gateways_monitor();
if (is_ipaddrv6($oldipv6)) { if (is_ipaddrv6($oldipv6) && $curwanipv6 != $oldipv6) {
if (does_interface_exist($interface_real)) { if (does_interface_exist($interface_real)) {
mwexec("/sbin/ifconfig {$interface_real} inet6 {$oldipv6} delete"); 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