summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-05-06 16:33:08 -0400
committerjim-p <jim@pingle.org>2010-05-06 16:34:33 -0400
commit9b2e9133f8726caf83d76f8f6836742880cd617b (patch)
tree3143942deca75093783964d3f76cb213243929ef /etc/inc/vpn.inc
parent1f65618b245a71d86fdcc173518270f815592b0c (diff)
downloadpfsense-9b2e9133f8726caf83d76f8f6836742880cd617b.zip
pfsense-9b2e9133f8726caf83d76f8f6836742880cd617b.tar.gz
Do not specify subnet in sainfo if we are dealing with a mobile PSK-only tunnel. Ticket #108
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index daaf82c..a2e3d1e 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -618,7 +618,7 @@ EOD;
$localid_type = $ph2ent['localid']['type'];
$localid_data = ipsec_idinfo_to_cidr($ph2ent['localid']);
- if ($localid_type == "none")
+ if (($localid_type == "none") || ($ph1ent['authentication_method'] == "pre_shared_key") && isset($ph1ent['mobile']))
$localid_spec = " ";
else if ($localid_type != "address") {
$localid_type = "subnet";
OpenPOWER on IntegriCloud