summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-05 19:26:35 -0500
committerjim-p <jimp@pfsense.org>2013-02-05 19:27:09 -0500
commit0715ad5093226a9fd29b1abbbf57a9892efe4100 (patch)
tree20654001dce7d86e5f39b536234697484495245d /etc/inc/gwlb.inc
parent68e5a9e91109ec7d0f7075ee40570ac1ce178d81 (diff)
downloadpfsense-0715ad5093226a9fd29b1abbbf57a9892efe4100.zip
pfsense-0715ad5093226a9fd29b1abbbf57a9892efe4100.tar.gz
If the user has IPv6 disabled, don't create dynamic IPv6 gateways.
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 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