Package net.i2p.router.web.helpers
Class ConfigNetHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.ConfigNetHelper
Used for both /config and /confignet
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
(package private) static final String
(package private) static final String
(package private) static final String
copied from various private components(package private) static final String
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis should always be the actual internal SSU port, as UDPTransport udpates the config when it changes.getIPv6Checked
(String mode) Combined SSU/NTCP Use SSU setting, then NTCP setting, then defaultDeprecated.unused, to be fixed if neededint
getTcpAutoIPChecked
(int mode) getTcpAutoPortChecked
(int mode) getUdpAutoIPChecked
(int mode) default false, inverse of default true propertydefault truegetUdpIP()
To reduce confusion caused by NATs, this is the current internal SSU port, not the external port.default trueMethods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
Field Details
-
PROP_I2NP_NTCP_HOSTNAME
copied from various private components- See Also:
-
PROP_I2NP_NTCP_PORT
- See Also:
-
PROP_I2NP_NTCP_AUTO_PORT
- See Also:
-
PROP_I2NP_NTCP_AUTO_IP
- See Also:
-
DEFAULT_SHARE_KBPS
public static final int DEFAULT_SHARE_KBPS- See Also:
-
-
Constructor Details
-
ConfigNetHelper
public ConfigNetHelper()
-
-
Method Details
-
getUdphostname
-
getNtcphostname
-
getNtcpport
-
getUdpIP
- Returns:
- host or "unknown"
-
getUdpPort
To reduce confusion caused by NATs, this is the current internal SSU port, not the external port. -
getConfiguredUdpPort
This should always be the actual internal SSU port, as UDPTransport udpates the config when it changes. -
getDynamicKeysChecked
-
getLaptopChecked
-
getIPv4FirewalledChecked
- Since:
- 0.9.20
-
getIPv6FirewalledChecked
- Since:
- 0.9.28
-
getTcpAutoPortChecked
-
getTcpAutoIPChecked
-
getUdpAutoIPChecked
-
getUpnpChecked
default true -
getUdpDisabledChecked
default false, inverse of default true property- Since:
- 0.8.13
-
getUdpEnabledChecked
default true- Since:
- 0.9.35
-
getRequireIntroductionsChecked
Deprecated.unused, to be fixed if neededThis isn't updated for the new statuses, but it's commented out in the jsp. -
getIPv6Checked
Combined SSU/NTCP Use SSU setting, then NTCP setting, then default- Since:
- IPv6
-
getAddresses
-
getAddressSelector
- Since:
- IPv6
-
getInboundRate
- Returns:
- decimal
-
getOutboundRate
- Returns:
- decimal
-
getInboundBurstRateBits
- Returns:
- decimal
-
getOutboundBurstRateBits
- Returns:
- decimal
-
getInboundBurstRate
- Returns:
- decimal
-
getOutboundBurstRate
- Returns:
- decimal
-