/confignet: Reorganize (ticket #2217)

This commit is contained in:
zzz
2018-05-26 16:05:28 +00:00
parent f11104e7bc
commit 5ca319e4bd
5 changed files with 56 additions and 88 deletions

View File

@ -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 */

View File

@ -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