summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-10-01 17:41:40 +0000
committerErmal <eri@pfsense.org>2010-10-01 17:41:40 +0000
commite62fe74895d166dd4e847dbfa572091deb0412c0 (patch)
treeecfa478263077e0419995d0b940d9d1d6632b9e0 /etc/inc/gwlb.inc
parentb314ab724d3ee52db07d4c7231622886369d543a (diff)
downloadpfsense-e62fe74895d166dd4e847dbfa572091deb0412c0.zip
pfsense-e62fe74895d166dd4e847dbfa572091deb0412c0.tar.gz
Do not show statically configured interfaces as with dynamic gateways because the gateway is already referenced/monitored on its own entry.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index ffc7c37..33db90e 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -313,6 +313,10 @@ function return_gateways_array($disabled = false) {
if(! interface_has_gateway($ifname))
continue;
+ $ifcfg =& $config['interfaces'][$ifname]['ipaddr'];
+ if (!empty($ifcfg['ipaddr']) && is_ipaddr($ifcfg['ipaddr']))
+ continue;
+
$gateway = array();
$gateway['dynamic'] = false;
$gateway['gateway'] = get_interface_gateway($ifname, $gateway['dynamic']);
OpenPOWER on IntegriCloud