#3732: Fix protocol state issue

This commit is contained in:
Outfluencer 2024-08-26 12:06:34 +02:00 committed by GitHub
parent 79f85a2ce2
commit 5fbcc6b119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,7 @@ import net.md_5.bungee.protocol.packet.Handshake;
import net.md_5.bungee.protocol.packet.Kick; import net.md_5.bungee.protocol.packet.Kick;
import net.md_5.bungee.protocol.packet.LegacyHandshake; import net.md_5.bungee.protocol.packet.LegacyHandshake;
import net.md_5.bungee.protocol.packet.LegacyPing; import net.md_5.bungee.protocol.packet.LegacyPing;
import net.md_5.bungee.protocol.packet.LoginAcknowledged;
import net.md_5.bungee.protocol.packet.LoginPayloadResponse; import net.md_5.bungee.protocol.packet.LoginPayloadResponse;
import net.md_5.bungee.protocol.packet.LoginRequest; import net.md_5.bungee.protocol.packet.LoginRequest;
import net.md_5.bungee.protocol.packet.LoginSuccess; import net.md_5.bungee.protocol.packet.LoginSuccess;
@ -690,6 +691,13 @@ public class InitialHandler extends PacketHandler implements PendingConnection
disconnect( "Unexpected custom LoginPayloadResponse" ); disconnect( "Unexpected custom LoginPayloadResponse" );
} }
@Override
public void handle(LoginAcknowledged loginAcknowledged) throws Exception
{
// this packet should only be sent after the login success (it should be handled in the UpstreamBridge)
disconnect( "Unexpected LoginAcknowledged" );
}
@Override @Override
public void handle(CookieResponse cookieResponse) public void handle(CookieResponse cookieResponse)
{ {