I2PControl:

Disable webapp by default
Add link in Services section of sidebar
Add definition in PortMapper
Add stub controller for socket implementation, WIP
Javadocs
This commit is contained in:
zzz
2019-01-28 13:31:54 +00:00
parent 47beb8250e
commit 24fd48815a
7 changed files with 272 additions and 3 deletions

View File

@ -802,6 +802,10 @@ public class RouterConsoleRunner implements RouterApp {
props.remove(PREFIX + "addressbook" + ENABLED);
rewrite = true;
}
} else if (appName.equals("jsonrpc") && enabled == null) {
// jsonrpc (i2pcontrol) webapp default is false
props.setProperty(PREFIX + "jsonrpc" + ENABLED, "false");
rewrite = true;
} else if (! "false".equals(enabled)) {
try {
String path = files[i].getCanonicalPath();

View File

@ -228,6 +228,14 @@ class SummaryBarRenderer {
.append("</a>\n");
}
if (pm.isRegistered(PortMapper.SVC_JSONRPC)) {
buf.append("<a href=\"/jsonrpc/\" target=\"_top\" title=\"")
.append(_t("RPC Service"))
.append("\">")
.append(nbsp(_t("I2PControl")))
.append("</a>\n");
}
if (pm.isRegistered(PortMapper.SVC_I2PSNARK)) {
buf.append("<a href=\"/torrents\" target=\"_top\" title=\"")
.append(_t("Built-in anonymous BitTorrent Client"))