From de1e979f217053254ebea278ef0c4eea89b7c06f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 26 Apr 2017 08:37:12 +0200 Subject: [PATCH] rc: this looks suspicious, align with IPv6 --- src/etc/rc.newwanip | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/etc/rc.newwanip b/src/etc/rc.newwanip index 59e8fcf11..3a7b27ace 100755 --- a/src/etc/rc.newwanip +++ b/src/etc/rc.newwanip @@ -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. */ if ((empty($curwanip) || !is_ipaddr($curwanip)) && substr($interface_real, 0, 4) != "ovpn") { - if (!empty($config['interfaces'][$interface]['ipaddr'])) { - log_error("Failed to update {$interface} IP, restarting..."); - configd_run("interface reconfigure {$interface}"); - return; - } + log_error("Failed to detect IP for {$interface_descr}[{$interface}]"); + return; } $oldip = @file_get_contents("/var/db/{$interface}_cacheip");