diff --git a/etc/rc.newwanip b/etc/rc.newwanip index f9c23afcf1..beeb0b8d5d 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -76,6 +76,10 @@ else { $curwanip = find_interface_ip($interface_real, true); if($curwanip == "") $curwanip = get_interface_ip($interface); + if (($curwanip == "") && !(isset($config['interfaces'][$interface]['ipaddr']))) { + log_error("Interface does not have an IP address, nothing to do."); + return; + } } log_error("rc.newwanip: on (IP address: {$curwanip}) (interface: {$interface}) (real interface: {$interface_real}).");