diff options
author | jim-p <jimp@pfsense.org> | 2013-11-11 13:11:17 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-11-11 13:11:17 -0500 |
commit | 793299b8f5bdc0fd167093cc5ab9f3f30f0d77ac (patch) | |
tree | 022a3c2c02e659c3fe634b15412116b11625a103 /etc | |
parent | 58ee84b4b2f9daba87e44abf663026c6266a7cd8 (diff) | |
download | pfsense-793299b8f5bdc0fd167093cc5ab9f3f30f0d77ac.zip pfsense-793299b8f5bdc0fd167093cc5ab9f3f30f0d77ac.tar.gz |
This tag could be present, but empty. Skip processing if the interface has no IP address.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 2 |
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; } |