Commit debaee82 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) ipsec phase 2 protocol selection glitch

parent 10a0fd8e
...@@ -157,8 +157,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -157,8 +157,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// initialize form data // initialize form data
$pconfig = array(); $pconfig = array();
$phase2_fields = "ikeid,mode,descr,uniqid,proto,hash-algorithm-option $phase2_fields = "ikeid,mode,descr,uniqid,proto,hash-algorithm-option,pfsgroup,pfsgroup,lifetime,pinghost,protocol";
,pfsgroup,pfsgroup,lifetime,pinghost";
if ($p2index !== null) { if ($p2index !== null) {
// 1-on-1 copy // 1-on-1 copy
foreach (explode(",", $phase2_fields) as $fieldname) { foreach (explode(",", $phase2_fields) as $fieldname) {
...@@ -378,8 +377,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -378,8 +377,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (count($input_errors) == 0) { if (count($input_errors) == 0) {
$ph2ent = array(); $ph2ent = array();
$copy_fields = "ikeid,uniqid,mode,pfsgroup,lifetime,pinghost,descr $copy_fields = "ikeid,uniqid,mode,pfsgroup,lifetime,pinghost,descr,protocol";
,protocol";
// 1-on-1 copy // 1-on-1 copy
foreach (explode(",", $copy_fields) as $fieldname) { foreach (explode(",", $copy_fields) as $fieldname) {
...@@ -814,8 +812,7 @@ endif; ?> ...@@ -814,8 +812,7 @@ endif; ?>
<?php <?php
foreach (array('esp' => 'ESP','ah' => 'AH') as $proto => $protoname) : foreach (array('esp' => 'ESP','ah' => 'AH') as $proto => $protoname) :
?> ?>
<option value="<?=$proto; <option value="<?=$proto;?>" <?= $proto == $pconfig['protocol'] ? "selected=\"selected\"" : "";?>>
?>" <?= $proto == $pconfig['protocol'] ? "selected=\"selected\"" : "";?>>
<?=$protoname;?> <?=$protoname;?>
</option> </option>
<?php <?php
......
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