diff options
author | Ermal <eri@pfsense.org> | 2014-02-28 14:13:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-28 14:13:54 +0000 |
commit | 9cca1a4fdbb6d6e8abe84262b3769b75d312d058 (patch) | |
tree | 5c4b3a069775319084da399517dd5e1e62e045a3 /etc/inc/gwlb.inc | |
parent | ddb30ebfc686165e00f0155e00df16edc17c31c5 (diff) | |
download | pfsense-9cca1a4fdbb6d6e8abe84262b3769b75d312d058.zip pfsense-9cca1a4fdbb6d6e8abe84262b3769b75d312d058.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.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 7cb83ae..0a81a23 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -553,9 +553,10 @@ function return_gateways_array($disabled = false, $localhost = false) { $ctype = strtoupper($ifcfg['ipaddrv6']); break; default: + $tunnelif = substr($ifname['if'], 0, 3); if (substr($ifcfg['if'], 0, 4) == "ovpn") $ctype = "VPNv6"; - else if (substr($ifcfg['if'], 0, 3) == "gif") + else if ($tunnelif == "gif" || $tunnelif == "gre") $ctype = "TUNNELv6"; break; } |