#3378: Remove KickStringWriter from the pipeline after handshake arrives

This commit is contained in:
Outfluencer 2022-11-12 11:41:10 +11:00 committed by md_5
parent 5b4a540440
commit 68e74a8c03
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -314,6 +314,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
Preconditions.checkState( thisState == State.HANDSHAKE, "Not expecting HANDSHAKE" );
this.handshake = handshake;
ch.setVersion( handshake.getProtocolVersion() );
ch.getHandle().pipeline().remove( PipelineUtils.LEGACY_KICKER );
// Starting with FML 1.8, a "\0FML\0" token is appended to the handshake. This interferes
// with Bungee's IP forwarding, so we detect it, and remove it from the host string, for now.