This tag could be present, but empty. Skip processing if the interface has no IP address.

This commit is contained in:
jim-p 2013-11-11 13:11:17 -05:00
parent 63f7282808
commit 629f07c331

View File

@ -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;
}