summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-10-28 14:19:35 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-10-28 14:20:26 -0200
commit1dc0e7f4f16b57ecca40157c5c8f76e9a60a914e (patch)
treefd88b919813fda26ccd5c4315736ec867624288c /etc/inc/gwlb.inc
parentb84ac9c64f25f604741525fce0441415a7734804 (diff)
downloadpfsense-1dc0e7f4f16b57ecca40157c5c8f76e9a60a914e.zip
pfsense-1dc0e7f4f16b57ecca40157c5c8f76e9a60a914e.tar.gz
Make return_gateways_array() return all disabled gateways when $disabled is true, it should fix #3291
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 e61d8da..012b288 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -379,7 +379,7 @@ function return_gateways_array($disabled = false, $localhost = false) {
$wancfg = $config['interfaces'][$gateway['interface']];
/* skip disabled interfaces */
- if (!isset($wancfg['enable']))
+ if ($disabled === false && !isset($wancfg['enable']))
continue;
/* if the gateway is dynamic and we can find the IPv4, Great! */
OpenPOWER on IntegriCloud