From 809b25e8b9329bcd7b155678b2c30be770155d13 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 25 Jan 2023 20:51:55 +0000 Subject: [PATCH] Disable max order length check for local servers. --- OpenRA.Game/Server/Connection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Server/Connection.cs b/OpenRA.Game/Server/Connection.cs index f9c54cf3e5c8..8f34d63f0800 100644 --- a/OpenRA.Game/Server/Connection.cs +++ b/OpenRA.Game/Server/Connection.cs @@ -115,7 +115,7 @@ void SendReceiveLoop(object s) frame = BitConverter.ToInt32(bytes, 4); state = ReceiveState.Data; - if (expectLength < 0 || expectLength > MaxOrderLength) + if (expectLength < 0 || (server.Type != ServerType.Local && expectLength > MaxOrderLength)) { Log.Write("server", $"Closing socket connection to {EndPoint} because of excessive order length: {expectLength}"); return;