summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-03-06 00:45:37 -0600
committerChris Buechler <cmb@pfsense.org>2015-03-06 00:45:37 -0600
commitc406924f3ef4996ff0eaa5fc6cf1a04c39220a5f (patch)
treeb77f9153d9f3daf3532ab320e7f3abc84cfaceac /etc/inc/vpn.inc
parent29de629ebd363c4d3e34d1a7bc68bd8d7f8a4c47 (diff)
downloadpfsense-c406924f3ef4996ff0eaa5fc6cf1a04c39220a5f.zip
pfsense-c406924f3ef4996ff0eaa5fc6cf1a04c39220a5f.tar.gz
same change as previous commit, for IPv6. Ticket #4482
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index f1dbfd6..1a3902c 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -652,7 +652,13 @@ EOD;
$vpninterface = $vpninterface[0];
} else {
$ifacesuse = get_failover_interface($ph1ent['interface']);
- $vpninterface = convert_real_interface_to_friendly_interface_name($ifacesuse);
+ if (strpos($ifacesuse, '_vip')) {
+ $vpninterface = explode('_vip', $ifacesuse);
+ $ifacesuse = get_real_interface($vpninterface[0]);
+ $vpninterface = $vpninterface[0];
+ } else {
+ $vpninterface = convert_real_interface_to_friendly_interface_name($ifacesuse);
+ }
}
if (!empty($ifacesuse) && interface_has_gateway($vpninterface)) {
OpenPOWER on IntegriCloud