diff options
author | jim-p <jimp@pfsense.org> | 2012-04-18 14:23:02 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-04-18 14:23:02 -0400 |
commit | daac437f8e63db626c5f2d16bde18cf3056a281d (patch) | |
tree | e3a99a241940e19dd2cdaa64dfa6d0b514bd8a59 /etc/inc/gwlb.inc | |
parent | 318a0812130fe6bb0f01cfbb8aa7c758f21f1efd (diff) | |
download | pfsense-daac437f8e63db626c5f2d16bde18cf3056a281d.zip pfsense-daac437f8e63db626c5f2d16bde18cf3056a281d.tar.gz |
Make sure VPN interface gateways are handled separately
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 9874263..c169f1f 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -440,6 +440,10 @@ function return_gateways_array($disabled = false) { case "pptp": $ctype = strtoupper($ifcfg['ipaddr']); break; + default: + if (substr($ifcfg['if'], 0, 5) == "ovpnc") + $ctype = "VPNv4"; + break; } $ctype = "_". strtoupper($ctype); @@ -499,6 +503,10 @@ function return_gateways_array($disabled = false) { case "6rd": $ctype = strtoupper($ifcfg['ipaddrv6']); break; + default: + if (substr($ifcfg['if'], 0, 5) == "ovpnc") + $ctype = "VPNv6"; + break; } $ctype = "_". strtoupper($ctype); |