summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-28 14:11:46 +0000
committerErmal <eri@pfsense.org>2014-02-28 14:11:46 +0000
commitcdeaf91e14e6e2808b71d0f0e50d9a0f8509d783 (patch)
tree815b7f7b62234362a305fc494c2e57dc30bf3b9f /etc/inc/gwlb.inc
parentd2c598080a984c620630a27e822c4a7678890b3c (diff)
downloadpfsense-cdeaf91e14e6e2808b71d0f0e50d9a0f8509d783.zip
pfsense-cdeaf91e14e6e2808b71d0f0e50d9a0f8509d783.tar.gz
Ticket #3484 Correct the case for GRE tunnels as well since they behave the same. GRE seems to need the prefixlen 128 specified all the time so do it explicitly to be on safe side
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index c90dd05..8cfc591 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -598,7 +598,8 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
default:
if (substr($ifcfg['if'], 0, 4) == "ovpn")
$ctype = "VPNv6";
- if (substr($ifcfg['if'], 0, 3) == "gif")
+ $tunnelif = substr($ifname['if'], 0, 3);
+ if ($tunnelif == "gif" || $tunnelif == "gre")
$ctype = "TUNNELv6";
break;
}
OpenPOWER on IntegriCloud