i2ptunnel: Change more /susidns links to /dns

This commit is contained in:
zzz
2025-05-20 09:37:35 -04:00
parent f9692a0aba
commit 06bce0faf5
3 changed files with 5 additions and 5 deletions

View File

@ -762,7 +762,7 @@ public abstract class I2PTunnelHTTPClientBase extends I2PTunnelClientBase implem
}
reader.close();
if (!hasSusiDNS) {
DataHelper.replace(out, "<a href=\"http://127.0.0.1:7657/susidns/index\">_(\"Addressbook\")</a>", "");
DataHelper.replace(out, "<a href=\"http://127.0.0.1:7657/dns\">_(\"Addressbook\")</a>", "");
}
if (!hasI2PTunnel) {
// there are also a couple in auth-header.ht that aren't worth stripping, for auth only

View File

@ -306,7 +306,7 @@ public abstract class LocalHTTPServer {
.append(conURL).append("config\">").append(_t("Configuration")).append("</a> <a href=\"")
.append(conURL).append("help.jsp\">").append(_t("Help")).append("</a>");
if (pm.isRegistered(PortMapper.SVC_SUSIDNS)) {
buf.append(" <a href=\"").append(conURL).append("susidns/index\">")
buf.append(" <a href=\"").append(conURL).append("dns\">")
.append(_t("Address book")).append("</a>\n");
}
buf.append("</div>" +
@ -377,7 +377,7 @@ public abstract class LocalHTTPServer {
"<a href=\"" + conURL + "\" title=\"" + _t("Router Console") + "\"><img src=\"http://proxy.i2p/themes/console/images/i2plogo.png\" alt=\"I2P Router Console\" border=\"0\"></a><hr>\n" +
"<a href=\"" + conURL + "config\">" + _t("Configuration") + "</a> <a href=\"" + conURL + "help.jsp\">" + _t("Help") + "</a>").getBytes("UTF-8"));
if (pm.isRegistered(PortMapper.SVC_SUSIDNS))
out.write((" <a href=\"" + conURL + "susidns/index\">" + _t("Address Book") + "</a>\n").getBytes("UTF-8"));
out.write((" <a href=\"" + conURL + "dns\">" + _t("Address Book") + "</a>\n").getBytes("UTF-8"));
out.write(("</div>" +
"<div class=warning id=warning>\n" +
"<h3>" +
@ -411,7 +411,7 @@ public abstract class LocalHTTPServer {
"<a href=\"" + conURL + "\" title=\"" + _t("Router Console") + "\"><img src=\"http://proxy.i2p/themes/console/images/i2plogo.png\" alt=\"I2P Router Console\" border=\"0\"></a><hr>\n" +
"<a href=\"" + conURL + "config\">" + _t("Configuration") + "</a> <a href=\"" + conURL + "help.jsp\">" + _t("Help") + "</a>").getBytes("UTF-8"));
if (pm.isRegistered(PortMapper.SVC_SUSIDNS))
out.write((" <a href=\"" + conURL + "susidns/index\">" + _t("Address Book") + "</a>\n").getBytes("UTF-8"));
out.write((" <a href=\"" + conURL + "dns\">" + _t("Address Book") + "</a>\n").getBytes("UTF-8"));
out.write(("</div>" +
"<div class=warning id=warning>\n" +
"<h3>" +

View File

@ -25,7 +25,7 @@ Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' ht
<p>
_("The website was not found in your router's addressbook.")
_("Check the link or find a Base 32 or Base 64 address.")
_("If you have the Base 64 address, {0}add it to your addressbook{1}.", "<a href=\"http://127.0.0.1:7657/susidns/addressbook?book=router\">", "</a>")
_("If you have the Base 64 address, {0}add it to your addressbook{1}.", "<a href=\"http://127.0.0.1:7657/dns?book=router\">", "</a>")
_("Otherwise, find a Base 32 or address helper link, or use a jump service link below.")
</p>
<p>