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:20:26 -0200 |
commit | 1dc0e7f4f16b57ecca40157c5c8f76e9a60a914e (patch) | |
tree | fd88b919813fda26ccd5c4315736ec867624288c /etc | |
parent | b84ac9c64f25f604741525fce0441415a7734804 (diff) | |
download | pfsense-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')
-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! */ |