summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-12-27 12:02:35 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-12-27 12:02:35 -0200
commitee574a9e332bb0468865cfd4d2cf202fb4c4bc3e (patch)
tree972045929da456b6b70a7cfbf37668b88def741f /etc/inc/gwlb.inc
parent63fee5762d0ae0a1698713497c022dc06c0ab3c8 (diff)
downloadpfsense-ee574a9e332bb0468865cfd4d2cf202fb4c4bc3e.zip
pfsense-ee574a9e332bb0468865cfd4d2cf202fb4c4bc3e.tar.gz
Fix a bug introduced in commit 06b8d43c that breaks return_gateways_array() called with $disabled == false
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 55a2027..8a9fe85 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -388,7 +388,7 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
$wancfg = $config['interfaces'][$gateway['interface']];
/* skip disabled interfaces */
- if ($disabled === false && (!isset($wancfg['enable']) || !isset($gateway['disabled'])))
+ if ($disabled === false && (!isset($wancfg['enable']) || isset($gateway['disabled'])))
continue;
/* if the gateway is dynamic and we can find the IPv4, Great! */
OpenPOWER on IntegriCloud