summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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