<%
String tunnelTypeName;
String tunnelType;
if (curTunnel >= 0) {
tunnelTypeName = editBean.getTunnelType(curTunnel);
tunnelType = editBean.getInternalType(curTunnel);
%>
<%
} else {
tunnelTypeName = editBean.getTypeName(request.getParameter("type"));
tunnelType = net.i2p.data.DataHelper.stripHTML(request.getParameter("type"));
%>
<%
// these are four keys that are generated automatically on first save,
// and we want to persist in i2ptunnel.config, but don't want to
// show clogging up the custom options form.
String key = editBean.getKey1(curTunnel);
if (key != null && key.length() > 0) { %>
<% }
key = editBean.getKey2(curTunnel);
if (key != null && key.length() > 0) { %>
<% }
key = editBean.getKey3(curTunnel);
if (key != null && key.length() > 0) { %>
<% }
key = editBean.getKey4(curTunnel);
if (key != null && key.length() > 0) { %>
<%=intl._t("Tunnel Options")%>
|
<%=intl._t("Length")%>
|
<%=intl._t("Variance")%>
|
|
|
<%=intl._t("Count")%>
|
<%=intl._t("Backup Count")%>
|
|
|
<% if (!"streamrserver".equals(tunnelType)) { %>
<%=intl._t("Profile")%>
|
|
<% } /* !streamrserver */ %>
<%=intl._t("Router I2CP Address")%>
|
<%=intl._t("Host")%>:
" value="<%=editBean.getI2CPHost(curTunnel)%>" class="freetext" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
|
<%=intl._t("Port")%>:
" value="<%=editBean.getI2CPPort(curTunnel)%>" class="freetext" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
|
<%=intl._t("Encrypt Leaseset")%>
|
|
<%=intl._t("Encryption Key")%>
|
<%=intl._t("Generate New Key")%> (<%=intl._t("Tunnel must be stopped first")%>)
|
|
|
<%=intl._t("Restricted Access List")%>
|
|
<%=intl._t("Access List")%> (<%=intl._t("Specify clients, 1 per line")%>)
|
|
<%=intl._t("Server Access Options")%>
|
<% if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) {
%>
|
|
|
" value="<%=editBean.getUserAgents(curTunnel)%>" class="freetext" />
|
<% } // httpserver
%>
|
|
<%=intl._t("Server Throttling")%>
|
|
<%=intl._t("Reduce tunnel quantity when idle")%>
|
|
<%=intl._t("Reduced tunnel count")%>:
" value="<%=editBean.getReduceCount(curTunnel)%>" class="freetext quantity" />
|
<%=intl._t("Idle period")%>:
" value="<%=editBean.getReduceTime(curTunnel)%>" class="freetext period" />
<%=intl._t("minutes")%>
|
<% /***************** %>
<%=intl._t("New Certificate type")%>
|
" value="<%=editBean.getEffort(curTunnel)%>" class="freetext" />
|
<%=intl._t("Hashcash Calc Time")%>
|
<%=intl._t("Hidden")%>
|
|
"<%=(editBean.getCert(curTunnel)==2 ? " checked=\"checked\"" : "")%> class="tickbox" />
|
<%=intl._t("Signed Certificate")%>
|
" value="<%=editBean.getSigner(curTunnel)%>" class="freetext" />
|
<%=intl._t("Modify Certificate")%> <%=intl._t("(Tunnel must be stopped first)")%>
|
|
<% **********************/ %>
<%
int currentSigType = editBean.getSigType(curTunnel, tunnelType);
if (true /* editBean.isAdvanced() */ ) {
%>
<%=intl._t("Signature type")%> (<%=intl._t("Experts only! Changes B32!")%>)
|
<% if (editBean.isSigTypeAvailable(1)) { %>
<% }
if (editBean.isSigTypeAvailable(2)) { %>
<% }
if (editBean.isSigTypeAvailable(3)) { %>
<% }
if (editBean.isSigTypeAvailable(7)) { %>
<% } // isAvailable %>
|
<% } // isAdvanced %>
<%
/* alternate dest, only if current dest is set and is DSA_SHA1 */
if (currentSigType == 0 && !"".equals(b64) && !"streamrserver".equals(tunnelType)) {
%>
<%=intl._t("Alternate private key file")%> (Ed25519-SHA-512)
|
" value="<%=editBean.getAltPrivateKeyFile(curTunnel)%>" />
|
<%
String ab64 = editBean.getAltDestinationBase64(curTunnel);
if (!"".equals(ab64)) {
%>
<%=intl._t("Alternate local destination")%>
|
"><%=ab64%>
|
<%=editBean.getAltDestHashBase32(curTunnel)%>
|
<%
ab64 = ab64.replace("=", "%3d");
String name = editBean.getSpoofedHost(curTunnel);
if (name == null || name.equals(""))
name = editBean.getTunnelName(curTunnel);
// mysite.i2p is set in the installed i2ptunnel.config
if (name != null && !name.equals("") && !name.equals("mysite.i2p") && !name.contains(" ") && name.endsWith(".i2p")) {
%>
" href="/imagegen/qr?s=320&t=<%=name%>&c=http%3a%2f%2f<%=name%>%2f%3fi2paddresshelper%3d<%=ab64%>" target="_top"><%=intl._t("Generate QR Code")%>
" href="/susidns/addressbook.jsp?book=private&hostname=<%=name%>&destination=<%=ab64%>#add"><%=intl._t("Add to local addressbook")%>
<%
} else {
%>
|
<%=intl._t("Note: In order to enable QR code generation or registration authentication, configure the Website Hostname field (for websites) or the Name field (everything else) above with an .i2p suffixed hostname e.g. mynewserver.i2p")%>
|
<%
} // name
%>
<%
} // ab64
%>
<% } // currentSigType %>
<%=intl._t("Custom options")%>
|
" value="<%=editBean.getCustomOptions(curTunnel)%>" />
|
|