i2ptunnel: Fix enc type configuration logic

This commit is contained in:
zzz
2021-10-01 08:18:07 -04:00
parent f41db2685e
commit cea76ed9d5
2 changed files with 4 additions and 4 deletions

View File

@ -609,11 +609,11 @@
</tr><tr>
<td colspan="2">
<span class="multiOption" <%=ehdisabled%>>
<label><input value="0" type="radio" id="startOnLoad" name="encType" <%=(has0 ? " checked=\"checked\"" : edisabled)%> class="tickbox" />
<label><input value="0" type="radio" id="startOnLoad" name="encType" <%=((has0 && !has4) ? " checked=\"checked\"" : edisabled)%> class="tickbox" />
ElGamal-2048</label>
</span>
<span class="multiOption" <%=ehdisabled%>>
<label><input value="4" type="radio" id="startOnLoad" name="encType" <%=(has4 ? " checked=\"checked\"" : edisabled)%> class="tickbox" />
<label><input value="4" type="radio" id="startOnLoad" name="encType" <%=((has4 && !has0) ? " checked=\"checked\"" : edisabled)%> class="tickbox" />
ECIES-X25519</label>
</span>
<span class="multiOption" <%=ehdisabled%>>