diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java index e05ffcbcc0..17b5d46022 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java @@ -148,7 +148,7 @@ public class ConfigNetHandler extends FormHandler { /** @since 0.8.13 */ public void setDisableUDP(String foo) { - _udpDisabled = true; + _udpDisabled = "disabled".equals(foo); } /** @since IPv6 */ diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java index e85652ec71..c24fcf22a9 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java @@ -160,6 +160,16 @@ public class ConfigNetHelper extends HelperBase { return ""; } + /** + * default true + * @since 0.9.35 + */ + public String getUdpEnabledChecked() { + if (_context.getBooleanPropertyDefaultTrue(TransportManager.PROP_ENABLE_UDP)) + return CHECKED; + return ""; + } + /** * This isn't updated for the new statuses, but it's commented out in the jsp. * @deprecated unused, to be fixed if needed diff --git a/apps/routerconsole/jsp/confignet.jsp b/apps/routerconsole/jsp/confignet.jsp index 951074dcc3..bee242c24d 100644 --- a/apps/routerconsole/jsp/confignet.jsp +++ b/apps/routerconsole/jsp/confignet.jsp @@ -26,8 +26,13 @@ + + + @@ -60,73 +65,66 @@ <%=nethelper.getAddressSelector() %> - - - - - - - - - - - - + + + - - - -<% /******** - -*********/ %> + + + - - - - - - @@ -165,32 +150,4 @@
- <%=intl._t("The default settings will work for most people.")%> - <%=intl._t("Changing these settings will restart your router.")%> + <%=intl._t("The default settings will work for most people.")%> + <%=intl._t("Changing these settings will restart your router.")%> +
+ <%=intl._t("Do not reveal your port numbers to anyone, as they can be used to discover your IP address.")%>
<%=intl._t("Action when IP changes")%>
- -
<%=intl._t("IPv4 Configuration")%>
+ <%=intl._t("IPv4 Configuration")%>:
<%=intl._t("IPv6 Configuration")%>
-
-
-
+ <%=intl._t("IPv6 Configuration")%>:


+
+
+ (<%=intl._t("Experimental")%>)
+ +
+ <%=intl._t("Action when IP changes")%>:
+
<%=intl._t("UDP Configuration")%>
- <%=intl._t("Do not reveal your port numbers to anyone, as they can be used to discover your IP address.")%> -
- <%=intl._t("UDP port:")%> + <%=intl._t("UDP port:")%>
+ " >
-
<%=intl._t("TCP Configuration")%>
+ <%=intl._t("Externally reachable TCP port")%>:
+ + " >
+ +
<%=intl._t("Externally reachable hostname or IP address")%>:
@@ -136,26 +134,13 @@ <%=intl._t("if we are not firewalled")%>

- - " >

-
<%=intl._t("Externally reachable TCP port")%>
-
- - " > + <%=intl._t("Completely disable")%> <%=intl._t("(select only if behind a firewall that throttles or blocks outbound TCP)")%>
+ + " >
- -<% /******** - -*********/ %> -<% /******** - -*********/ %> diff --git a/history.txt b/history.txt index 18120c59e0..4b7ecb7175 100644 --- a/history.txt +++ b/history.txt @@ -1,4 +1,5 @@ 2018-05-26 zzz + * /confignet: Reorganize (ticket #2217) * /configsidebar: Tag sections for translation; sort unselected sections by translated name * Router: Fix wrapper.config path in OOM message when installed as Debian package, but not running as a service (ticket #2223) diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index e36cd3b143..7f4edb9752 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -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 = 12; + public final static long BUILD = 13; /** for example "-test" */ public final static String EXTRA = "";