diff options
author | Ermal <eri@pfsense.org> | 2014-02-28 14:14:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-28 14:14:49 +0000 |
commit | b31247af7014e0703c7e38480cf1236fed735ce5 (patch) | |
tree | 15acdd0af71e179bb16bbf8ef3501df7587f70cc /etc/inc/gwlb.inc | |
parent | cdeaf91e14e6e2808b71d0f0e50d9a0f8509d783 (diff) | |
download | pfsense-b31247af7014e0703c7e38480cf1236fed735ce5.zip pfsense-b31247af7014e0703c7e38480cf1236fed735ce5.tar.gz |
Small correction for clear code
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 8cfc591..e126392 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -596,10 +596,10 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive $ctype = strtoupper($ifcfg['ipaddrv6']); break; default: + $tunnelif = substr($ifname['if'], 0, 3); if (substr($ifcfg['if'], 0, 4) == "ovpn") $ctype = "VPNv6"; - $tunnelif = substr($ifname['if'], 0, 3); - if ($tunnelif == "gif" || $tunnelif == "gre") + else if ($tunnelif == "gif" || $tunnelif == "gre") $ctype = "TUNNELv6"; break; } |