Added new RakNet options to match vanilla behaviour

This commit is contained in:
RaphiMC 2024-09-23 22:01:38 +02:00
parent 2212977587
commit f4ae68f955
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -59,6 +59,7 @@ public class BedrockProxyConnection extends ProxyConnection {
.option(RakChannelOption.RAK_PROTOCOL_VERSION, ProtocolConstants.BEDROCK_RAKNET_PROTOCOL_VERSION)
.option(RakChannelOption.RAK_COMPATIBILITY_MODE, true)
.option(RakChannelOption.RAK_CLIENT_INTERNAL_ADDRESSES, 20)
.option(RakChannelOption.RAK_TIME_BETWEEN_SEND_CONNECTION_ATTEMPTS_MS, 500)
.option(RakChannelOption.RAK_CONNECT_TIMEOUT, (long) ViaProxy.getConfig().getConnectTimeout())
.option(RakChannelOption.RAK_SESSION_TIMEOUT, 30_000L)
.option(RakChannelOption.RAK_GUID, ThreadLocalRandom.current().nextLong())