mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Bring back accidentally removed MTU option (#4229)
This commit is contained in:
parent
6b67e43f84
commit
450e3b61fe
1 changed files with 2 additions and 0 deletions
|
@ -171,10 +171,12 @@ public final class GeyserServer {
|
|||
|
||||
GeyserServerInitializer serverInitializer = new GeyserServerInitializer(this.geyser);
|
||||
playerGroup = serverInitializer.getEventLoopGroup();
|
||||
this.geyser.getLogger().debug("Setting MTU to " + this.geyser.getConfig().getMtu());
|
||||
return new ServerBootstrap()
|
||||
.channelFactory(RakChannelFactory.server(TRANSPORT.datagramChannel()))
|
||||
.group(group)
|
||||
.option(RakChannelOption.RAK_HANDLE_PING, true)
|
||||
.option(RakChannelOption.RAK_MAX_MTU, this.geyser.getConfig().getMtu())
|
||||
.childHandler(serverInitializer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue