<%@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")%> (<%=editBean.getTunnelName(curTunnel)%>)

<% } 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) { %> <% } %> <% if ("streamrclient".equals(tunnelType)) { %> <% } else { %> <% } /* streamrclient */ %> <% if ("client".equals(tunnelType) || "ircclient".equals(tunnelType)) { %> <% } /* tunnel types */ %> <% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %> <% if ("httpclient".equals(tunnelType)) { %> <% } // httpclient %> <% } else if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "streamrclient".equals(tunnelType)) { %> <% } %> <% if (!"streamrclient".equals(tunnelType)) { %> <% } // !streamrclient %> <% if ("ircclient".equals(tunnelType)) { %> <% } // ircclient %>
<%=intl._t("Name")%> <%=intl._t("Type")%>
<%=tunnelTypeName%>
<%=intl._t("Description")%> <%=intl._t("Auto Start Tunnel")%>
<% if ("streamrclient".equals(tunnelType)) { %> <%=intl._t("Target")%> <% } else { %> <%=intl._t("Access Point")%> <% } /* streamrclient */ %>
<%=intl._t("Port")%>: <% String value = editBean.getClientPort(curTunnel); if (value == null || "".equals(value.trim())) { out.write(" ("); out.write(intl._t("required")); out.write(")"); } %> <%=intl._t("Host")%>: <% String targetHost = editBean.getTargetHost(curTunnel); if (targetHost == null || "".equals(targetHost.trim())) { out.write(" ("); out.write(intl._t("required")); out.write(")"); } %> <%=intl._t("Reachable by")%>:
<%=intl._t("Use SSL?")%>
<%=intl._t("Outproxies")%>
 (<%=intl._t("comma separated eg. proxy1.i2p,proxy2.i2p")%>)
<%=intl._t("SSL Outproxies")%>
<%=intl._t("Use Outproxy Plugin")%>
<%=intl._t("Tunnel Destination")%>
<% String value2 = editBean.getClientDestination(curTunnel); if (value2 == null || "".equals(value2.trim())) { out.write(" ("); out.write(intl._t("required")); out.write(")"); } %> (<%=intl._t("name, name:port, or destination")%> <% if ("streamrclient".equals(tunnelType)) { /* deferred resolution unimplemented in streamr client */ %> - <%=intl._t("b32 not recommended")%> <% } %> )
<%=intl._t("Shared Client")%>
<%=intl._t("Enable DCC")%>

<%=intl._t("Advanced Networking Options")%>

<% if (!"streamrclient".equals(tunnelType)) { %> <% // no shared client tunnels for streamr %> <% } // !streamrclient %> <% if (!"streamrclient".equals(tunnelType)) { %> <% } // !streamrclient %> <% if (!"streamrclient".equals(tunnelType)) { // streamr client sends pings so it will never be idle %> <% } // !streamrclient %> <% if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "socksirctunnel".equals(tunnelType) || "sockstunnel".equals(tunnelType)) { %> <% String destb64 = editBean.getDestinationBase64(curTunnel); if (destb64.length() > 0) { %> <% } // if destb64 %> <% } %> <% if ("httpclient".equals(tunnelType)) { %> <% } // if httpclient %> <% if (true /* editBean.isAdvanced() */ ) { int currentSigType = editBean.getSigType(curTunnel, tunnelType); %> <% } // isAvailable %> <% } // isAdvanced %> <% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %> <% } // httpclient || connect || socks || socksirc %> <% if ("httpclient".equals(tunnelType)) { %> <% } // httpclient %>
<%=intl._t("Note: When this client proxy is configured to share tunnels, then these options are for all the shared proxy clients!")%>
<%=intl._t("Tunnel Options")%>
<%=intl._t("Length")%> <%=intl._t("Variance")%>
<%=intl._t("Count")%> <%=intl._t("Backup Count")%>
<%=intl._t("Profile")%> <%=intl._t("Delay Connect")%>
<%=intl._t("Router I2CP Address")%>
<%=intl._t("Host")%>: readonly="readonly" <% } %> /> <%=intl._t("Port")%>: readonly="readonly" <% } %> />
<%=intl._t("Delay tunnel open until required")%>
<%=intl._t("Reduce tunnel quantity when idle")%>
<%=intl._t("Reduced tunnel count")%>: <%=intl._t("Idle period")%>: minutes
<%=intl._t("Close tunnels when idle")%>
<%=intl._t("Idle period")%>: minutes
<%=intl._t("New Keys on Reopen")%>:
<%=intl._t("Persistent private key")%>
<%=intl._t("File")%>:
<%=intl._t("Local destination")%>
<%=intl._t("Local Base 32")%>: <%=editBean.getDestHashBase32(curTunnel)%>
<%=intl._t("HTTP Filtering")%>
<%=intl._t("Signature type")%> (<%=intl._t("Experts only!")%>)
<% if (editBean.isSigTypeAvailable(1)) { %> <% } if (editBean.isSigTypeAvailable(2)) { %> <% } if (editBean.isSigTypeAvailable(3)) { %> <% } if (editBean.isSigTypeAvailable(7)) { %>
<%=intl._t("Local Authorization")%>
<%=intl._t("Username")%>: <%=intl._t("Password")%>:
<%=intl._t("Outproxy Authorization")%>
<%=intl._t("Username")%>: <%=intl._t("Password")%>:
<%=intl._t("Jump URL List")%>
<%=intl._t("Custom options")%>
<% } else { %>
<%=intl._t("Tunnels are not initialized yet, please reload in two minutes.")%>
<% } // isInitialized() %>