diff options
author | Ermal <eri@pfsense.org> | 2013-12-27 21:34:16 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-27 21:34:16 +0000 |
commit | d68494e6ed6038d632738a8775dfc598f46d71e0 (patch) | |
tree | 75310176385d333f59f274405d304ce5e9c7f92d | |
parent | 57b02731c1d21f56d7e2106c6a569b4fcc528b57 (diff) | |
download | pfsense-d68494e6ed6038d632738a8775dfc598f46d71e0.zip pfsense-d68494e6ed6038d632738a8775dfc598f46d71e0.tar.gz |
Correct the check to what was intended
-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 3186f0f..5926433 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']) && !empty($config['interfaces'][$interface]['ipaddr'])) { + if (($curwanip == "") && empty($config['interfaces'][$interface]['ipaddr'])) { log_error("Interface does not have an IP address, nothing to do."); return; } |