Skip to content

Commit bde0c16

Browse files
authored
Merge pull request #32 from PaperMC/dev/3.0.0
[pull] main from PaperMC:dev/3.0.0
2 parents 173f07c + e13c8c3 commit bde0c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/HandshakePacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ public int expectedMinLength(ByteBuf buf, ProtocolUtils.Direction direction,
116116
@Override
117117
public int expectedMaxLength(ByteBuf buf, ProtocolUtils.Direction direction,
118118
ProtocolVersion version) {
119-
return 270;
119+
return 9 + (MAXIMUM_HOSTNAME_LENGTH * 3);
120120
}
121121
}

0 commit comments

Comments
 (0)