#3761: Whitelist LoginPayloadResponse in UpstreamBridge#shouldHandle

Required for #3758 to function correctly.
This commit is contained in:
Outfluencer 2025-01-22 21:11:11 +01:00 committed by GitHub
parent 1265a9927b
commit 0aa2871b26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -704,6 +704,9 @@ public class InitialHandler extends PacketHandler implements PendingConnection
}
Preconditions.checkState( future != null, "Unexpected custom LoginPayloadResponse" );
future.complete( response.getData() );
// we should never pass this to the backend
throw CancelSendSignal.INSTANCE;
}
@Override

View File

@ -132,7 +132,7 @@ public class UpstreamBridge extends PacketHandler
@Override
public boolean shouldHandle(PacketWrapper packet) throws Exception
{
return con.getServer() != null || packet.packet instanceof PluginMessage || packet.packet instanceof CookieResponse;
return con.getServer() != null || packet.packet instanceof PluginMessage || packet.packet instanceof CookieResponse || packet.packet instanceof LoginPayloadResponse;
}
@Override