Changeset 24fd4881
- Timestamp:
- Jan 28, 2019 1:31:54 PM (2 years ago)
- Branches:
- master
- Children:
- 0a8ab441
- Parents:
- 47beb82
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/i2pcontrol/build.xml
r47beb82 r24fd4881 52 52 <target name="war" depends="compile" > 53 53 <war destfile="build/jsonrpc.war" webxml="web.xml" > 54 <classes dir="./build/obj" excludes="net/i2p/i2pcontrol/I2PControlController.class net/i2p/i2pcontrol/HostCheckHandler.class " />54 <classes dir="./build/obj" excludes="net/i2p/i2pcontrol/I2PControlController.class net/i2p/i2pcontrol/HostCheckHandler.class net/i2p/i2pcontrol/SocketController*.class" /> 55 55 <manifest> 56 56 <attribute name="Implementation-Version" value="${full.version}" /> -
apps/i2pcontrol/java/net/i2p/i2pcontrol/HostCheckHandler.java
r47beb82 r24fd4881 24 24 * all the webapps (not just routerconsole). 25 25 * Therefore, this protects all the webapps. 26 * 27 * This class is NOT used for the webapp or the bare ServerSocket implementation. 26 28 * 27 29 * @since 0.12 copied from routerconsole -
apps/i2pcontrol/java/net/i2p/i2pcontrol/I2PControlController.java
r47beb82 r24fd4881 59 59 * 60 60 * Usage: I2PControlController -d $PLUGIN [start|stop] 61 * 62 * This class is NOT used for the webapp or the bare ServerSocket implementation. 61 63 * 62 64 * @author hottuna … … 79 81 static final String PROP_ALLOWED_HOSTS = "i2pcontrol.allowedhosts"; 80 82 private static final String SVC_HTTPS_I2PCONTROL = "https_i2pcontrol"; 83 private static final int DEFAULT_PORT = 7650; 81 84 82 85 /** … … 208 211 _context.portMapper().register(SVC_HTTPS_I2PCONTROL, 209 212 _conf.getConf("i2pcontrol.listen.address", "127.0.0.1"), 210 _conf.getConf("i2pcontrol.listen.port", 7650));213 _conf.getConf("i2pcontrol.listen.port", DEFAULT_PORT)); 211 214 } 212 215 … … 219 222 private Connector buildDefaultListener(Server server) { 220 223 Connector ssl = buildSslListener(server, _conf.getConf("i2pcontrol.listen.address", "127.0.0.1"), 221 _conf.getConf("i2pcontrol.listen.port", 7650));224 _conf.getConf("i2pcontrol.listen.port", DEFAULT_PORT)); 222 225 return ssl; 223 226 } -
apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java
r47beb82 r24fd4881 803 803 rewrite = true; 804 804 } 805 } else if (appName.equals("jsonrpc") && enabled == null) { 806 // jsonrpc (i2pcontrol) webapp default is false 807 props.setProperty(PREFIX + "jsonrpc" + ENABLED, "false"); 808 rewrite = true; 805 809 } else if (! "false".equals(enabled)) { 806 810 try { -
apps/routerconsole/java/src/net/i2p/router/web/helpers/SummaryBarRenderer.java
r47beb82 r24fd4881 226 226 .append("\">") 227 227 .append(nbsp(_t("Email"))) 228 .append("</a>\n"); 229 } 230 231 if (pm.isRegistered(PortMapper.SVC_JSONRPC)) { 232 buf.append("<a href=\"/jsonrpc/\" target=\"_top\" title=\"") 233 .append(_t("RPC Service")) 234 .append("\">") 235 .append(nbsp(_t("I2PControl"))) 228 236 .append("</a>\n"); 229 237 } -
core/java/src/net/i2p/util/PortMapper.java
r47beb82 r24fd4881 79 79 */ 80 80 public static final String SVC_SUSIMAIL = "susimail"; 81 /** 82 * To indicate presence, alternative to WebAppStarter.isWebappRunning(). 83 * For actual base URL, use getConsoleURL() 84 * @since 0.9.39 85 */ 86 public static final String SVC_JSONRPC = "jsonrpc"; 81 87 82 88 /** @since 0.9.34 */
Note: See TracChangeset
for help on using the changeset viewer.