Skip to content

Commit

Permalink
Bring back accidentally removed MTU option (#4229)
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris authored Oct 20, 2023
1 parent 6b67e43 commit 450e3b6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,12 @@ private ServerBootstrap createBootstrap(EventLoopGroup group) {

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);
}

Expand Down

0 comments on commit 450e3b6

Please sign in to comment.