diff --git a/apps/i2ptunnel/jsp/wizard.jsp b/apps/i2ptunnel/jsp/wizard.jsp index d1e7108c0..313f130c3 100644 --- a/apps/i2ptunnel/jsp/wizard.jsp +++ b/apps/i2ptunnel/jsp/wizard.jsp @@ -397,12 +397,68 @@ %><%=intl._("Because you chose not to automatically start the tunnel, you will have to manually start it.")%> <%=intl._("You can do this by clicking the Start button on the main page which corresponds to the new tunnel.")%><% } %> -

<% - /*XXX TODO -

- Show a summary of what we picked.

- */%> +

+ <%=intl._("Below is a summary of the options you chose:")%> +

+ + + + <% + if (tunnelIsClient) { %> + <% + } %> + + +
<%=intl._("Server or client tunnel?")%> + <%=(tunnelIsClient ? "Client" : "Server")%> +
<%=intl._("Tunnel type")%><% + if ("client".equals(tunnelType) || "server".equals(tunnelType)) { %> + <%=intl._("Standard")%><% + } else if ("httpclient".equals(tunnelType) || "httpserver".equals(tunnelType)) { %> + HTTP<% + } else if ("httpbidirserver".equals(tunnelType)) { %> + HTTP bidir<% + } else if ("ircclient".equals(tunnelType) || "ircserver".equals(tunnelType)) { %> + IRC<% + } else if ("sockstunnel".equals(tunnelType)) { %> + SOCKS 4/4a/5<% + } else if ("socksirctunnel".equals(tunnelType)) { %> + SOCKS IRC<% + } else if ("connectclient".equals(tunnelType)) { %> + CONNECT<% + } else if ("streamrclient".equals(tunnelType) || "streamrserver".equals(tunnelType)) { %> + Streamr<% + } %> +
<%=intl._("Tunnel name and description")%> + <%=request.getParameter("name")%>
+ <%=request.getParameter("description")%> +
<%=intl._("Tunnel destination")%><% + if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { %> + <%=request.getParameter("proxyList")%><% + } else if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "streamrclient".equals(tunnelType)) { %> + <%=request.getParameter("targetDestination")%><% + } %> +
<%=intl._("Binding address and port")%><% + if ((tunnelIsClient && "streamrclient".equals(tunnelType)) || (!tunnelIsClient && !"streamrserver".equals(tunnelType))) { %> + <%=request.getParameter("targetHost")%>
<% + } + if (!tunnelIsClient) { %> + <%=request.getParameter("targetPort")%>
<% + } + if (tunnelIsClient || "httpbidirserver".equals(tunnelType)) { %> +
<%=request.getParameter("port")%><% + } + if ((tunnelIsClient && !"streamrclient".equals(tunnelType)) || "httpbidirserver".equals(tunnelType) || "streamrserver".equals(tunnelType)) { %> +
<%=request.getParameter("reachableBy")%><% + } %> +
<%=intl._("Tunnel auto-start")%><% + if ("1".equals(request.getParameter("startOnLoad"))) { %> + Yes<% + } else { %> + No<% + } %> +

<%=intl._("Alongside these basic settings, there are a number of advanced options for tunnel configuration.")%> <%=intl._("The wizard will set reasonably sensible default values for these, but you can view and/or edit these by clicking on the tunnel's name in the main I2PTunnel page.")%>