Changeset d8516862


Ignore:
Timestamp:
May 5, 2018 2:09:47 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d3c28a6
Parents:
87329bc3
Message:

SSL Wizard: Add links

Location:
apps/i2ptunnel/jsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/jsp/editServer.jsi

    r87329bc3 rd8516862  
    248248                %>
    249249              <a class="control" title="<%=intl._t("Register, unregister or change details for hostname")%>" href="register?tunnel=<%=curTunnel%>"><%=intl._t("Registration Authentication")%></a>
     250              <%
     251                    if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) {
     252                %>
     253              <a class="control" title="<%=intl._t("HTTPS configuration")%>" href="ssl?tunnel=<%=curTunnel%>"><%=intl._t("SSL Wizard")%></a>
     254              <%
     255                    }
     256                %>
    250257            </td>
    251258        <%
  • apps/i2ptunnel/jsp/ssl.jsp

    r87329bc3 rd8516862  
    514514<tr><th colspan="4"><%=intl._t("Incoming I2P Port Routing")%></th></tr>
    515515<tr><th><%=intl._t("Route From I2P Port")%></th><th><%=intl._t("With Virtual Host")%></th><th><%=intl._t("Via SSL?")%></th><th><%=intl._t("To Server Host:Port")%></th></tr>
    516 <tr><td><%=intl._t("Default")%></td><td><%=name%></td><td><%=sslToTarget%></td><td><%=targetLink%></td></tr>
     516<tr><td><a href="http://<%=b32%>/"><%=intl._t("Default")%></a></td><td><%=name%></td><td><%=sslToTarget%></td><td><%=targetLink%></td></tr>
    517517<%
    518518    // output vhost and targets
    519519    for (Integer port : ports) {
    520520        boolean ssl = sslToTarget;
     521        boolean sslPort = false;
    521522        String spoof = spoofs.get(port);
    522523        if (spoof == null)
     
    528529                spoof += "<br />" + altb32;
    529530            ssl = true;
     531            sslPort = true;
    530532        }
    531533        String tgt = tgts.get(port);
     
    541543            tgt = targetLink;
    542544        }
    543 %>
    544 <tr><td><%=port%></td><td><%=spoof%></td><td><%=ssl%></td><td><%=tgt%></td></tr>
     545        String portTgt = sslPort ? "https" : "http";
     546%>
     547<tr><td><a href="<%=portTgt%>://<%=b32%>:<%=port%>/"><%=port%></a></td><td><%=spoof%></td><td><%=ssl%></td><td><%=tgt%></td></tr>
    545548<%
    546549    }
     
    760763        if (!foundClientConfig) {
    761764%>
    762 <tr><td colspan="4">Cannot configure, no Jetty client found in clients.config that matches this tunnel</td></tr>
     765<tr><td colspan="4">Cannot configure, no Jetty server found in clients.config that matches this tunnel</td></tr>
    763766<tr><td colspan="4">Support for non-Jetty servers TBD</td></tr>
    764767<%
Note: See TracChangeset for help on using the changeset viewer.