diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-10-28 14:19:35 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-10-28 14:19:35 -0200 |
commit | aec89bd3c2d0f9b464e0d7cc6d189c49966d6f0b (patch) | |
tree | 207b72e0c5979e678d895bb2a38c25def9bb9a3a /etc/inc | |
parent | 7610d2287c66dc8397cd132743340168c785256a (diff) | |
download | pfsense-aec89bd3c2d0f9b464e0d7cc6d189c49966d6f0b.zip pfsense-aec89bd3c2d0f9b464e0d7cc6d189c49966d6f0b.tar.gz |
Make return_gateways_array() return all disabled gateways when $disabled is true, it should fix #3291
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/gwlb.inc | 2 |
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! */ |