Class ConfigNetHelper


  • public class ConfigNetHelper
    extends HelperBase
    Used for both /config and /confignet
    • Constructor Detail

      • ConfigNetHelper

        public ConfigNetHelper()
    • Method Detail

      • getUdphostname

        public String getUdphostname()
      • getNtcphostname

        public String getNtcphostname()
      • getNtcpport

        public String getNtcpport()
      • getUdpIP

        public String getUdpIP()
        Returns:
        host or "unknown"
      • getUdpPort

        public String getUdpPort()
        To reduce confusion caused by NATs, this is the current internal SSU port, not the external port.
      • getConfiguredUdpPort

        public String getConfiguredUdpPort()
        This should always be the actual internal SSU port, as UDPTransport udpates the config when it changes.
      • getDynamicKeysChecked

        public String getDynamicKeysChecked()
      • getLaptopChecked

        public String getLaptopChecked()
      • getIPv4FirewalledChecked

        public String getIPv4FirewalledChecked()
        Since:
        0.9.20
      • getIPv6FirewalledChecked

        public String getIPv6FirewalledChecked()
        Since:
        0.9.28
      • getTcpAutoPortChecked

        public String getTcpAutoPortChecked​(int mode)
      • getTcpAutoIPChecked

        public String getTcpAutoIPChecked​(int mode)
      • getUdpAutoIPChecked

        public String getUdpAutoIPChecked​(int mode)
      • getUpnpChecked

        public String getUpnpChecked()
        default true
      • getUdpDisabledChecked

        public String getUdpDisabledChecked()
        default false, inverse of default true property
        Since:
        0.8.13
      • getUdpEnabledChecked

        public String getUdpEnabledChecked()
        default true
        Since:
        0.9.35
      • getRequireIntroductionsChecked

        @Deprecated
        public String getRequireIntroductionsChecked()
        Deprecated.
        unused, to be fixed if needed
        This isn't updated for the new statuses, but it's commented out in the jsp.
      • getIPv6Checked

        public String getIPv6Checked​(String mode)
        Combined SSU/NTCP Use SSU setting, then NTCP setting, then default
        Since:
        IPv6
      • getAddresses

        public Set<String> getAddresses()
      • getAddressSelector

        public String getAddressSelector()
        Since:
        IPv6
      • getInboundRate

        public String getInboundRate()
        Returns:
        decimal
      • getOutboundRate

        public String getOutboundRate()
        Returns:
        decimal
      • getInboundBurstRateBits

        public String getInboundBurstRateBits()
        Returns:
        decimal
      • getOutboundBurstRateBits

        public String getOutboundBurstRateBits()
        Returns:
        decimal
      • getShareRateBits

        public String getShareRateBits()
        Returns:
        decimal
      • getInboundBurstRate

        public String getInboundBurstRate()
        Returns:
        decimal
      • getOutboundBurstRate

        public String getOutboundBurstRate()
        Returns:
        decimal
      • getSharePercentageBox

        public String getSharePercentageBox()
      • getShareBandwidth

        public int getShareBandwidth()
        Returns:
        in binary KBytes per second