summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-28 14:14:49 +0000
committerErmal <eri@pfsense.org>2014-02-28 14:14:49 +0000
commitb31247af7014e0703c7e38480cf1236fed735ce5 (patch)
tree15acdd0af71e179bb16bbf8ef3501df7587f70cc /etc/inc/gwlb.inc
parentcdeaf91e14e6e2808b71d0f0e50d9a0f8509d783 (diff)
downloadpfsense-b31247af7014e0703c7e38480cf1236fed735ce5.zip
pfsense-b31247af7014e0703c7e38480cf1236fed735ce5.tar.gz
Small correction for clear code
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc4
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;
}
OpenPOWER on IntegriCloud