#3761: Whitelist LoginPayloadResponse in UpstreamBridge#shouldHandle
Required for #3758 to function correctly.
This commit is contained in:
parent
1265a9927b
commit
0aa2871b26
@ -704,6 +704,9 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
}
|
}
|
||||||
Preconditions.checkState( future != null, "Unexpected custom LoginPayloadResponse" );
|
Preconditions.checkState( future != null, "Unexpected custom LoginPayloadResponse" );
|
||||||
future.complete( response.getData() );
|
future.complete( response.getData() );
|
||||||
|
|
||||||
|
// we should never pass this to the backend
|
||||||
|
throw CancelSendSignal.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -132,7 +132,7 @@ public class UpstreamBridge extends PacketHandler
|
|||||||
@Override
|
@Override
|
||||||
public boolean shouldHandle(PacketWrapper packet) throws Exception
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user