summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-21 21:09:35 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-21 21:09:35 +0100
commit39e3b27b78a577cded70caf2d8e6653ec017825c (patch)
treea83d948e9d0b44990745201f96eb67b9bd333a1b
parent4e1fd3b6f0eded20732f92477c5daef7ab50cfcf (diff)
downloadpfsense-39e3b27b78a577cded70caf2d8e6653ec017825c.zip
pfsense-39e3b27b78a577cded70caf2d8e6653ec017825c.tar.gz
Ticket #4254 actually use the info on the protocol of the vpn sepcification to be more sure on the family to use
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 82e95d1..77a9549 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -588,7 +588,7 @@ EOD;
else
$sourcehost = $rgmap['remote-gateway'];
- if (is_ipaddrv4($sourcehost)) {
+ if ($ph1ent['protocol'] == 'inet') {
if (strpos($ph1ent['interface'], '_vip')) {
$vpninterface = explode('_vip', $ph1ent['interface']);
$ifacesuse = get_real_interface($vpninterface[0]);
@@ -609,7 +609,7 @@ EOD;
}
}
}
- } else if (is_ipaddrv6($sourcehost)) {
+ } else if ($ph1ent['protocol'] == 'inet6') {
if (strpos($ph1ent['interface'], '_vip')) {
$vpninterface = explode('_vip', $ph1ent['interface']);
$ifacesuse = get_real_interface($vpninterface[0]);
OpenPOWER on IntegriCloud