Contents
Class IceServerConfig
java.lang.Object
com.hypixel.hytale.server.core.io.ice.IceServerConfig
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProvides reflexive gathering when live config has no usable STUN server. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanWhether this server answers ICE connectivity checks.Returns configured STUN servers in order.
-
Field Details
-
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
-