diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-10-11 12:53:20 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-10-11 12:53:20 -0300 |
commit | 10f0a57ab4f47e73a3d248087ee54f805b4d7367 (patch) | |
tree | 84053913a36d1e294aa8730b74feeb1854129776 /etc/inc/vpn.inc | |
parent | e857eff69bd89af17d4e39170c481efbd3c64ed3 (diff) | |
parent | d60f510a2c4ddc298e024b5b0d1a969f710c4249 (diff) | |
download | pfsense-10f0a57ab4f47e73a3d248087ee54f805b4d7367.zip pfsense-10f0a57ab4f47e73a3d248087ee54f805b4d7367.tar.gz |
Merge remote branch 'mainline/master' into inc
Conflicts:
etc/inc/authgui.inc
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 040184a..a61b3f0 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -390,6 +390,9 @@ function vpn_ipsec_configure($ipchg = false) $racoonconf .= "\tbanner \"{$fn}\";\n"; } + if (isset($a_client['save_passwd'])) + $racoonconf .= "\tsave_passwd on;\n"; + $racoonconf .= "}\n\n"; } /* end mode_cfg section */ @@ -635,10 +638,12 @@ EOD; /* Do not print localid in some cases, such as a pure-psk mobile tunnel */ if (($localid_type == "none") || ($ph1ent['authentication_method'] == "pre_shared_key") && isset($ph1ent['mobile'])) $localid_spec = " "; - else if ($localid_type != "address") { - $localid_type = "subnet"; - $localid_spec = $localid_type." ".$localid_data." any"; - } + else { + if ($localid_type != "address") { + $localid_type = "subnet"; + } + $localid_spec = $localid_type." ".$localid_data." any"; + } if (!isset($ph2ent['mobile'])) { $remoteid_type = $ph2ent['remoteid']['type']; |