Class IceServerConfig

java.lang.Object
com.hypixel.hytale.server.core.io.ice.IceServerConfig

public final class IceServerConfig extends Object
The STUN servers this server gathers reflexive candidates from, and whether ICE runs at all.

Both values come from live config, so they can change without a server update. The client reads the same two flags, and both defaults match the client's, so the two agree on every flag live config does not carry. A server that answers no connectivity check is indistinguishable from an unreachable host, so a disagreement here fails joins with nothing in the log to explain it.

  • Field Details

    • FALLBACK_STUN_SERVER

      @Nonnull public static final String FALLBACK_STUN_SERVER
      Provides reflexive gathering when live config has no usable STUN server.
      See Also:
  • Method Details

    • isIceEnabled

      public static boolean isIceEnabled()
      Whether this server answers ICE connectivity checks.
      Returns:
      the live config flag, defaulting to the client's default when the flag is absent
    • stunServers

      @Nonnull public static List<String> stunServers()
      Returns configured STUN servers in order. Bracketed IPv6 hosts are returned without brackets.