From 629f07c3312bd5bbf9f4e0d39809dfd3a8278006 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 11 Nov 2013 13:11:17 -0500 Subject: [PATCH] This tag could be present, but empty. Skip processing if the interface has no IP address. --- etc/rc.newwanip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 43af7f172c..3186f0f24b 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -82,7 +82,7 @@ else { $curwanip = find_interface_ip($interface_real, true); if($curwanip == "") $curwanip = get_interface_ip($interface); - if (($curwanip == "") && !(isset($config['interfaces'][$interface]['ipaddr']))) { + if (($curwanip == "") && !isset($config['interfaces'][$interface]['ipaddr']) && !empty($config['interfaces'][$interface]['ipaddr'])) { log_error("Interface does not have an IP address, nothing to do."); return; }