diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-12 21:16:53 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-12 21:16:53 +0545 |
commit | 21c2355a6d091f8d42e17e9e139a54763c01a916 (patch) | |
tree | 60ae4f94d8d571b0a325e8199dcb8f9a2a692488 /src | |
parent | 97dbeff6625310015614ed46e593e02b6a5a0d80 (diff) | |
download | pfsense-21c2355a6d091f8d42e17e9e139a54763c01a916.zip pfsense-21c2355a6d091f8d42e17e9e139a54763c01a916.tar.gz |
IPsec phase 2 display existing keylen
When you edit an IPsec phase2, if there are any particular key lengths already selected in the config for each of the encryption algorithms they are not displayed - they just all show as Auto. That then "accidentally" changes previous settings when you save.
Found as part of searching for dodgy-loking uses of "==".
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/vpn_ipsec_phase2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/vpn_ipsec_phase2.php b/src/usr/local/www/vpn_ipsec_phase2.php index 336739b..e00be54 100644 --- a/src/usr/local/www/vpn_ipsec_phase2.php +++ b/src/usr/local/www/vpn_ipsec_phase2.php @@ -659,7 +659,7 @@ foreach ($p2_ealgos as $algo => $algodata) { $group->add(new Form_Select( 'keylen_' . $algo, null, - $keylen == $pconfig["keylen_".$algo], + $pconfig["keylen_".$algo], ['auto' => 'Auto'] + $list )); } |