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 e05ffcbcc..17b5d4602 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 e85652ec7..c24fcf22a 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 951074dcc..bee242c24 100644 --- a/apps/routerconsole/jsp/confignet.jsp +++ b/apps/routerconsole/jsp/confignet.jsp @@ -26,8 +26,13 @@
| - <%=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")%> | -
|
- - + |