From 0715ad5093226a9fd29b1abbbf57a9892efe4100 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 5 Feb 2013 19:26:35 -0500 Subject: If the user has IPv6 disabled, don't create dynamic IPv6 gateways. --- etc/inc/gwlb.inc | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.1