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 f8d96b8..663070e 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -563,6 +563,10 @@ function return_gateways_array($disabled = false, $localhost = false) {
/* Process/add dynamic v6 gateways. */
foreach($iflist as $ifname => $friendly ) {
+ /* If the user has disabled IPv6, they probably don't want any IPv6 gateways. */
+ if (!isset($config['system']['ipv6allow']))
+ break;
+
if(! interface_has_gatewayv6($ifname))
continue;
OpenPOWER on IntegriCloud