<%
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")%>:
readonly="readonly" <% } %> />
|
<%=intl._t("Port")%>:
readonly="readonly" <% } %> />
|
<%=intl._t("Encrypt Leaseset")%>
|
class="tickbox" />
<%=intl._t("Only allow clients with the encryption key to connect to this server")%>
|
<%=intl._t("Encryption Key")%>
|
<%=intl._t("Generate New Key")%> (<%=intl._t("Tunnel must be stopped first")%>)
|
|
|
<%=intl._t("Restricted Access List")%>
|
<% /* can't use |
<%=intl._t("Access List")%> (<%=intl._t("Specify clients, 1 per line")%>)
|
|
<%=intl._t("Server Access Options")%>
|
<% if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) {
%>
" <%=(editBean.isRejectInproxy(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" />
<%=intl._t("Block Access via Inproxies")%>
|
" <%=(editBean.isRejectReferer(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" />
<%=intl._t("Block Accesses containing Referers")%>
|
" <%=(editBean.isRejectUserAgents(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" />
<%=intl._t("Block these User-Agents")%>
|
" value="<%=editBean.getUserAgents(curTunnel)%>" class="freetext" />
|
<% } // httpserver
%>
" <%=(editBean.getUniqueLocal(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" />
<%=intl._t("Unique Local Address per Client")%>
|
" <%=(editBean.getMultihome(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" />
<%=intl._t("Optimize for Multihoming")%>
|
<%=intl._t("Server Throttling")%>
|
|
<%=intl._t("Reduce tunnel quantity when idle")%>
|
class="tickbox" />
<%=intl._t("Reduce tunnel quantity when idle to conserve resources")%>
|
<%=intl._t("Reduced tunnel count")%>:
|
<%=intl._t("Idle period")%>:
<%=intl._t("minutes")%>
|
<% /***************** %>
<% **********************/ %>
<%
int currentSigType = editBean.getSigType(curTunnel, tunnelType);
if (true /* editBean.isAdvanced() */ ) {
%>
<%=intl._t("Signature type")%> (<%=intl._t("Experts only! Changes B32!")%>)
|
class="tickbox" />
DSA-SHA1
<% if (editBean.isSigTypeAvailable(1)) { %>
class="tickbox" />
ECDSA-P256
<% }
if (editBean.isSigTypeAvailable(2)) { %>
class="tickbox" />
ECDSA-P384
<% }
if (editBean.isSigTypeAvailable(3)) { %>
class="tickbox" />
ECDSA-P521
<% }
if (editBean.isSigTypeAvailable(7)) { %>
class="tickbox" />
Ed25519-SHA-512
<% } // isAvailable %>
|
<% } // isAdvanced %>
<%
/* alternate dest, only if current dest is set and is DSA_SHA1 */
if (currentSigType == 0 && !"".equals(b64) && !"streamrserver".equals(tunnelType)) {
%>
<%
String ab64 = editBean.getAltDestinationBase64(curTunnel);
if (!"".equals(ab64)) {
%>
<%
} // ab64
%>
<% } // currentSigType %>
<%=intl._t("Custom options")%>
|
|
|