Skip to content

Commit 7d0e98d

Browse files
committed
Skip checking for OCR2 security byte in compatibility mode
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
1 parent b877fbf commit 7d0e98d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

transport-raknet/src/main/java/org/cloudburstmc/netty/handler/codec/raknet/client/RakClientOfflineHandlerCompatible.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ void onOpenConnectionReply2(ChannelHandlerContext ctx, ByteBuf buffer) {
5656
RakUtils.skipAddress(buffer); // serverAddress
5757

5858
int mtu = buffer.readShort();
59-
boolean security = buffer.readBoolean(); // security
60-
if (security) {
61-
this.successPromise().tryFailure(new SecurityException());
62-
return;
63-
}
59+
buffer.skipBytes(1); // security (ignored by vanilla client)
6460

6561
this.rakChannel().config().setOption(RakChannelOption.RAK_MTU, mtu);
6662
this.state(RakOfflineState.HANDSHAKE_COMPLETED);

0 commit comments

Comments
 (0)