Ignore:
Timestamp:
Apr 11, 2019 3:38:03 PM (16 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
363317f
Parents:
b5a4f16
Message:

i2ptunnel: Disallow encrypted LS for offline keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/jsp/editServer.jsi

    rb5a4f16 rf4d7a6d  
    433433<%
    434434                    int curSigType = editBean.getSigType(curTunnel, tunnelType);
    435                     if (curSigType == 7 || curSigType == 11) {
     435                    // TODO, encrypted + offline is unimplemented
     436                    boolean allowBlinding = (curSigType == 7 || curSigType == 11) && !editBean.getIsOfflineKeys(curTunnel);
     437                    if (allowBlinding) {
    436438%>
    437439                <span class="multiOption"><label title="<%=intl._t("Prevents server discovery by floodfills")%>"><input value="2" type="radio" name="encryptMode"<%=(curEncryptMode.equals("2") ? " checked=\"checked\"" : "")%> class="tickbox" />
     
    453455<%
    454456                        } // isAdvanced()
    455                     } // curSigType
     457                    } // allowBlinding
    456458%>
    457459            </td>
     
    470472        </tr>
    471473<%
    472             if (curSigType == 7 || curSigType == 11) {
     474            if (allowBlinding) {
    473475%>
    474476        <tr>
     
    479481        </tr>
    480482<%
    481             } // curSigType
     483            } // allowBlinding
    482484%>
    483485        <tr>
Note: See TracChangeset for help on using the changeset viewer.