Commit de1e979f authored by Franco Fichtner's avatar Franco Fichtner

rc: this looks suspicious, align with IPv6

parent 97fb7d11
...@@ -79,11 +79,8 @@ log_error("On (IP address: {$curwanip}) (interface: {$interface_descr}[{$interfa ...@@ -79,11 +79,8 @@ log_error("On (IP address: {$curwanip}) (interface: {$interface_descr}[{$interfa
* i.e. OpenVPN might be in tap mode and not have an ip. * i.e. OpenVPN might be in tap mode and not have an ip.
*/ */
if ((empty($curwanip) || !is_ipaddr($curwanip)) && substr($interface_real, 0, 4) != "ovpn") { if ((empty($curwanip) || !is_ipaddr($curwanip)) && substr($interface_real, 0, 4) != "ovpn") {
if (!empty($config['interfaces'][$interface]['ipaddr'])) { log_error("Failed to detect IP for {$interface_descr}[{$interface}]");
log_error("Failed to update {$interface} IP, restarting..."); return;
configd_run("interface reconfigure {$interface}");
return;
}
} }
$oldip = @file_get_contents("/var/db/{$interface}_cacheip"); $oldip = @file_get_contents("/var/db/{$interface}_cacheip");
......
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