summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-11-11 13:11:17 -0500
committerjim-p <jimp@pfsense.org>2013-11-11 13:11:17 -0500
commit793299b8f5bdc0fd167093cc5ab9f3f30f0d77ac (patch)
tree022a3c2c02e659c3fe634b15412116b11625a103
parent58ee84b4b2f9daba87e44abf663026c6266a7cd8 (diff)
downloadpfsense-793299b8f5bdc0fd167093cc5ab9f3f30f0d77ac.zip
pfsense-793299b8f5bdc0fd167093cc5ab9f3f30f0d77ac.tar.gz
This tag could be present, but empty. Skip processing if the interface has no IP address.
-rwxr-xr-xetc/rc.newwanip2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 43af7f1..3186f0f 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;
}
OpenPOWER on IntegriCloud