diff options
author | Ermal <eri@pfsense.org> | 2010-10-01 17:41:40 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-01 17:41:40 +0000 |
commit | e62fe74895d166dd4e847dbfa572091deb0412c0 (patch) | |
tree | ecfa478263077e0419995d0b940d9d1d6632b9e0 | |
parent | b314ab724d3ee52db07d4c7231622886369d543a (diff) | |
download | pfsense-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.
-rw-r--r-- | etc/inc/gwlb.inc | 4 |
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']); |