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

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

<% } else { tunnelTypeName = editBean.getTypeName(request.getParameter("type")); tunnelType = request.getParameter("type"); %>

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

<% } %> " />

<%=tunnelTypeName%>

<% if ("streamrclient".equals(tunnelType)) { %> <% } else { %> <% } /* streamrclient */ %>
<% } else { %> <%=intl._("Reachable by")%>(R): <% } /* streamrclient */ %>

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

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


<%=intl._("(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._("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" />

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

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

<% if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %>
class="tickbox" />
<%=intl._("(if known)")%>

<% } %> <% 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 %>