summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-05 12:29:17 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-02-05 12:30:10 -0200
commit733829a9dbf5ea9d24cd9c3a42ee9fcc76051a2f (patch)
tree84830265eab3c0941d9567713156af2ff0deb4ef /etc
parentd2b2872afa2e7d36c6cb7c30b8885cff8147985e (diff)
downloadpfsense-733829a9dbf5ea9d24cd9c3a42ee9fcc76051a2f.zip
pfsense-733829a9dbf5ea9d24cd9c3a42ee9fcc76051a2f.tar.gz
When IP is not set, the field doesn't have the value 'none', use empty() to check instead
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 1a469ee..e1020e1 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2728,7 +2728,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -alias", true) == 0);
/* only bring down the interface when both v4 and v6 are set to NONE */
- if(($wancfg['ipaddr'] <> "none") && ($wancfg['ipaddrv6'] <> "none")) {
+ if(empty($wancfg['ipaddr']) && empty($wancfg['ipaddrv6'])) {
interface_bring_down($interface);
}
}
OpenPOWER on IntegriCloud