Commit 7055fab4 authored by Franco Fichtner's avatar Franco Fichtner

rc: merge another change to avoid loops on IPv4

parent fd0d827c
......@@ -87,8 +87,7 @@ log_error("rc.newwanip: on (IP address: {$curwanip}) (interface: {$interface_des
if ($curwanip == "0.0.0.0" || !is_ipaddr($curwanip)) {
if (substr($interface_real, 0, 4) != "ovpn") {
if (!empty($config['interfaces'][$interface]['ipaddr'])) {
log_error("rc.newwanip: Failed to update {$interface} IP, restarting...");
configd_run("interface reconfigure {$interface}");
log_error("rc.newwanip: Failed to update {$interface} IP");
return;
}
}
......
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