<%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean" %><%@page trimDirectiveWhitespaces="true" %> <% String tun = request.getParameter("tunnel"); int curTunnel = -1; if (tun != null) { try { curTunnel = Integer.parseInt(tun); } catch (NumberFormatException nfe) { curTunnel = -1; } } %> <%=intl._t("Hidden Services Manager")%> - <%=intl._t("Edit Client Tunnel")%> <% if (editBean.allowCSS()) { %> <% } %> <% if (editBean.isInitialized()) { %>
<% String tunnelTypeName; String tunnelType; if (curTunnel >= 0) { tunnelTypeName = editBean.getTunnelType(curTunnel); tunnelType = editBean.getInternalType(curTunnel); %>

<%=intl._t("Edit proxy settings")%>

<% } else { tunnelTypeName = editBean.getTypeName(request.getParameter("type")); tunnelType = net.i2p.data.DataHelper.stripHTML(request.getParameter("type")); %>

<%=intl._t("New proxy settings")%>

<% } %> <% // 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) { %> <% } %>

<%=tunnelTypeName%>

<% if ("streamrclient".equals(tunnelType)) { %> <% } else { %> <% } /* streamrclient */ %>
<% } else { %> <%=intl._t("Reachable by")%>(R): <% } /* streamrclient */ %>
<% if ("client".equals(tunnelType) || "ircclient".equals(tunnelType)) { %>
class="tickbox" />
<% } /* tunnel types */ %>

<% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %>
<% if ("httpclient".equals(tunnelType)) { %>
<% } // httpclient %>
class="tickbox" /> <%=intl._t("(Check the Box for 'YES')")%>
<% } else if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "streamrclient".equals(tunnelType)) { %>
(<%=intl._t("name, name:port, or destination")%> <% if ("streamrclient".equals(tunnelType)) { /* deferred resolution unimplemented in streamr client */ %> - <%=intl._t("b32 not recommended")%> <% } %> )
<% } %> <% if (!"streamrclient".equals(tunnelType)) { %>
class="tickbox" /> <%=intl._t("(Share tunnels with other clients and irc/httpclients? Change requires restart of client proxy)")%>
<% } // !streamrclient %>
class="tickbox" /> <%=intl._t("(Check the Box for 'YES')")%>
<% if ("ircclient".equals(tunnelType)) { %>
class="tickbox" /> <%=intl._t("(Check the Box for 'YES')")%>
<% } // ircclient %>

<%=intl._t("Advanced networking options")%>


<%=intl._t("(NOTE: when this client proxy is configured to share tunnels, then these options are for all the shared proxy clients!)")%>


<% if (!"streamrclient".equals(tunnelType)) { %>
class="tickbox" /> (<%=intl._t("for request/response connections")%>)

<% } // !streamrclient %>
readonly="readonly" <% } %> />
readonly="readonly" <% } %> />
<% if (!"streamrclient".equals(tunnelType)) { // streamr client sends pings so it will never be idle %>

class="tickbox" />
<% } // !streamrclient %>

class="tickbox" />

class="tickbox" />
class="tickbox" /> <%=intl._t("Enable")%> class="tickbox" /> <%=intl._t("Disable")%>

<% if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "socksirctunnel".equals(tunnelType) || "sockstunnel".equals(tunnelType)) { %>
class="tickbox" />
<% String destb64 = editBean.getDestinationBase64(curTunnel); if (destb64.length() > 0) { %>
<%=editBean.getDestHashBase32(curTunnel)%>
<% } // if destb64 %>

<% } %> <% if ("httpclient".equals(tunnelType)) { %>
class="tickbox" />

class="tickbox" />

class="tickbox" />

class="tickbox" />

<% } // if httpclient %> <% if (true /* editBean.isAdvanced() */ ) { int currentSigType = editBean.getSigType(curTunnel, tunnelType); %>
class="tickbox" />
<% if (editBean.isSigTypeAvailable(1)) { %>
class="tickbox" />
<% } if (editBean.isSigTypeAvailable(2)) { %>
class="tickbox" />
<% } if (editBean.isSigTypeAvailable(3)) { %>
class="tickbox" />
<% } if (editBean.isSigTypeAvailable(7)) { %>
class="tickbox" />
<% } // isAvailable %>

<% } // isAdvanced %> <% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %>
class="tickbox" />

class="tickbox" />

<% } // httpclient || connect || socks || socksirc %> <% if ("httpclient".equals(tunnelType)) { %>

<% } // httpclient %>
<% } else { %>Tunnels are not initialized yet, please reload in two minutes.<% } // isInitialized() %>