<%
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) { %>
<% if (!"streamrclient".equals(tunnelType)) { %> <% // no shared client tunnels for streamr %>
<%=intl._t("Note: When this client proxy is configured to share tunnels, then these options are for all the shared proxy clients!")%>
|
<% } // !streamrclient %>
<%=intl._t("Tunnel Options")%>
|
<%=intl._t("Length")%>
|
<%=intl._t("Variance")%>
|
|
|
<%=intl._t("Count")%>
|
<%=intl._t("Backup Count")%>
|
|
|
<% if (!"streamrclient".equals(tunnelType)) { %>
<%=intl._t("Profile")%>
|
<%=intl._t("Delay Connect")%>
|
|
<% // TODO: Convey to users: Where is the (1s) delay introduced? What is the difference between delay connect and delay open? %>
|
<% } // !streamrclient %>
<%=intl._t("Router I2CP Address")%>
|
<%=intl._t("Host")%>:
" value="<%=editBean.getI2CPHost(curTunnel)%>" class="freetext host" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
|
<%=intl._t("Port")%>:
" value="<%=editBean.getI2CPPort(curTunnel)%>" class="freetext port" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
|
<% if (!"streamrclient".equals(tunnelType)) { // streamr client sends pings so it will never be idle %>
<%=intl._t("Delay tunnel open until required")%>
|
|
<% } // !streamrclient %>
<%=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" />
minutes
|
<%=intl._t("Close tunnels when idle")%>
|
|
<%=intl._t("Idle period")%>:
" value="<%=editBean.getCloseTime(curTunnel)%>" class="freetext period" />
minutes
|
<%=intl._t("New Keys on Reopen")%>:
|
<% if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "socksirctunnel".equals(tunnelType) || "sockstunnel".equals(tunnelType)) { %>
<%=intl._t("Persistent private key")%>
|
|
<%=intl._t("File")%>:
" value="<%=editBean.getPrivateKeyFile(curTunnel)%>" class="freetext" />
|
<%
String destb64 = editBean.getDestinationBase64(curTunnel);
if (destb64.length() > 0) {
%>
<%=intl._t("Local destination")%>
|
" tabindex="0" onblur="resetScrollLeft(this)"><%=destb64%>
|
<%=intl._t("Local Base 32")%>:
<%=editBean.getDestHashBase32(curTunnel)%>
|
<% } // if destb64 %>
<% } %>
<% if ("httpclient".equals(tunnelType)) { %>
<%=intl._t("HTTP Filtering")%>
|
|
|
|
|
<% } // if httpclient %>
<% if (true /* editBean.isAdvanced() */ ) {
int currentSigType = editBean.getSigType(curTunnel, tunnelType);
%>
<%=intl._t("Signature type")%> (<%=intl._t("Experts only!")%>)
|
<% if (editBean.isSigTypeAvailable(1)) { %>
<% }
if (editBean.isSigTypeAvailable(2)) { %>
<% }
if (editBean.isSigTypeAvailable(3)) { %>
<% }
if (editBean.isSigTypeAvailable(7)) { %>
|
<% } // isAvailable %>
<% } // isAdvanced %>
<% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %>
<%=intl._t("Local Authorization")%>
|
|
<%=intl._t("Username")%>:
" value="" class="freetext username" />
|
<%=intl._t("Password")%>:
" value="" class="freetext password" />
|
<%=intl._t("Outproxy Authorization")%>
|
|
<%=intl._t("Username")%>:
" value="<%=editBean.getOutproxyUsername(curTunnel)%>" class="freetext username" />
|
<%=intl._t("Password")%>:
" value="<%=editBean.getOutproxyPassword(curTunnel)%>" class="freetext password" />
|
<% } // httpclient || connect || socks || socksirc %>
<% if ("httpclient".equals(tunnelType)) { %>
<%=intl._t("Jump URL List")%>
|
|
<% } // httpclient %>
<%=intl._t("Custom options")%>
|
" value="<%=editBean.getCustomOptions(curTunnel)%>" class="freetext" spellcheck="false"/>
|
|