From aec89bd3c2d0f9b464e0d7cc6d189c49966d6f0b Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 28 Oct 2013 14:19:35 -0200 Subject: Make return_gateways_array() return all disabled gateways when $disabled is true, it should fix #3291 --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/gwlb.inc') 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! */ -- cgit v1.1