forked from I2P_Developers/i2p.i2p
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:
@ -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();
|
||||
|
@ -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"))
|
||||
|
Reference in New Issue
Block a user