diff options
author | jim-p <jim@pingle.org> | 2010-05-06 16:53:09 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-05-06 16:53:09 -0400 |
commit | d98f1fa9a88f6f3c434f20f835f6fd4a5717653f (patch) | |
tree | 73a1e061e658a41930e6c84fa2c99742be2757eb /etc/inc/vpn.inc | |
parent | fa1f4827850ddc332764848336fe6124a43cfcde (diff) | |
download | pfsense-d98f1fa9a88f6f3c434f20f835f6fd4a5717653f.zip pfsense-d98f1fa9a88f6f3c434f20f835f6fd4a5717653f.tar.gz |
Ensure initial_contact is 'on' in this case to behave as 1.2.3 did. Ticket #108
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 27bb359..2270657 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -493,11 +493,12 @@ function vpn_ipsec_configure($ipchg = false) $genp = "off"; if (isset($ph1ent['mobile'])) { $rgip = "anonymous"; - $init = "off"; - if ($ph1ent['authentication_method'] == "pre_shared_key") + if ($ph1ent['authentication_method'] == "pre_shared_key") { $genp = "on"; - else + } else { + $init = "off"; $genp = "unique"; + } } $dpdline1 = ''; |