I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d8e297dd authored by zzz's avatar zzz
Browse files

* Fix webapp PortMapper lookup for SSL-only console

parent f956539b
No related branches found
No related tags found
No related merge requests found
......@@ -137,12 +137,16 @@ public class WebAppStarter {
/** see comments in ConfigClientsHandler */
static Server getConsoleServer() {
PortMapper pm = I2PAppContext.getGlobalContext().portMapper();
int p1 = pm.getPort(PortMapper.SVC_CONSOLE);
int p2 = pm.getPort(PortMapper.SVC_HTTPS_CONSOLE);
Collection c = Server.getHttpServers();
for (int i = 0; i < c.size(); i++) {
Server s = (Server) c.toArray()[i];
HttpListener[] hl = s.getListeners();
for (int j = 0; j < hl.length; j++) {
if (hl[j].getPort() == I2PAppContext.getGlobalContext().portMapper().getPort(PortMapper.SVC_CONSOLE))
int port = hl[j].getPort();
if (port == p1 || port == p2)
return s;
}
}
......
......@@ -59,8 +59,6 @@ public class PortMapper {
*/
public int getPort(String service) {
int port = getPort(service, -1);
if(-1==port)
throw new RuntimeException("No port registered for service "+service);
return port;
}
......
2012-01-02 zzz
* Fix webapp PortMapper lookup for SSL-only console
* Wrapper 3.5.13 for arm v7
2011-12-31 zzz
* Fix log NPE when saveConfig() fails at startup, thx kytv
(backport from jetty6 branch)
......
......@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 26;
public final static long BUILD = 27;
/** for example "-test" */
public final static String EXTRA = "-rc";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment