i2ptunnel: Proxy jump page tweaks

This commit is contained in:
zzz committed 2025-02-11 12:38:52 -05:00
1 parent 68a6987a99
commit 5dadc5ae93
1 file changed
+4 -4
@@ -1559,15 +1559,15 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
String header = getErrorPage("ahelper-new", ERR_AHELPER_NEW);
out.write(header);
out.write("<table id=\"proxyNewHost\">\n<tr><td align=\"right\">" + _t("Host") +
"</td><td>" + idn + "</td></tr>\n");
":</td><td>" + idn + "</td></tr>\n");
try {
String b32 = Base32.encode(SHA256Generator.getInstance().calculateHash(Base64.decode(ahelperKey)).getData());
out.write("<tr><td align=\"right\">" + _t("Base32") + "</td>" +
out.write("<tr><td align=\"right\">" + _t("Base32") + ":</td>" +
"<td><a href=\"http://" + b32 + ".b32.i2p/\">" + b32 + ".b32.i2p</a></td></tr>");
} catch(Exception e) {
}
out.write("<tr><td align=\"right\">" + _t("Destination") + "</td><td>" +
"<textarea rows=\"1\" style=\"height: 6em; min-width: 0; min-height: 0;\" cols=\"70\" wrap=\"off\" readonly=\"readonly\" >" + ahelperKey + "</textarea>" +
out.write("<tr><td align=\"right\">" + _t("Destination") + ":</td><td>" +
"<textarea rows=\"1\" style=\"height: 3em; min-width: 0; min-height: 0;\" cols=\"70\" wrap=\"off\" readonly=\"readonly\" >" + ahelperKey + "</textarea>" +
"</td></tr>\n</table>\n" + "<hr>\n" +
// FIXME if there is a query remaining it is lost