Commit dba37bcf authored by Ad Schellevis's avatar Ad Schellevis

(legacy) forgot empty key-len in vpn_ipsec_phase1.php

parent c26cb800
......@@ -351,7 +351,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['encryption-algorithm'] = array();
}
$pconfig['encryption-algorithm']['name'] = $pconfig['ealgo'];
$pconfig['encryption-algorithm']['keylen'] = $pconfig['ealgo_keylen'];
if (!empty($pconfig['ealgo_keylen'])) {
$pconfig['encryption-algorithm']['keylen'] = $pconfig['ealgo_keylen'];
}
if (count($input_errors) == 0) {
$copy_fields = "ikeid,iketype,interface,mode,protocol,myid_type,myid_data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment