diff --git a/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java b/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java index b128ce15..649c4c1a 100644 --- a/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java +++ b/webui/src/main/java/com/muwire/webui/ConfigurationServlet.java @@ -60,9 +60,9 @@ public class ConfigurationServlet extends HttpServlet { case "speedSmoothSeconds" : core.getMuOptions().setSpeedSmoothSeconds(Integer.parseInt(value)); break; case "inBw" : core.getMuOptions().setInBw(Integer.parseInt(value)); break; case "outBw" : core.getMuOptions().setOutBw(Integer.parseInt(value)); break; - case "inbound.length" : core.getI2pOptions().setProperty(name, name); break; + case "inbound.length" : core.getI2pOptions().setProperty(name, value); break; case "inbound.quantity" : core.getI2pOptions().setProperty(name, value); break; - case "outbound.length" : core.getI2pOptions().setProperty(name, name); break; + case "outbound.length" : core.getI2pOptions().setProperty(name, value); break; case "outbound.quantity" : core.getI2pOptions().setProperty(name, value); break; // TODO: ui settings } diff --git a/webui/src/main/webapp/ConfigurationPage.jsp b/webui/src/main/webapp/ConfigurationPage.jsp index 2d34acb0..3ce59499 100644 --- a/webui/src/main/webapp/ConfigurationPage.jsp +++ b/webui/src/main/webapp/ConfigurationPage.jsp @@ -13,6 +13,11 @@ <% String pagetitle=Util._t("Configuration"); Core core = (Core) application.getAttribute("core"); + +String inboundLength = core.getI2pOptions().getProperty("inbound.length"); +String inboundQuantity = core.getI2pOptions().getProperty("inbound.quantity"); +String outboundLength = core.getI2pOptions().getProperty("outbound.length"); +String outboundQuantity = core.getI2pOptions().getProperty("outbound.quantity"); %> @@ -95,7 +100,27 @@ Core core = (Core) application.getAttribute("core"); Update trust lists every (hours) -

+

+ + + +
+ + + + + + + + + + + + + + + +
Inbound tunnel length

Inbound tunnel quantity

Outbound tunnel length

Outbound tunnel quantity