From 947f53a9913e2efd75e0f7d15e805dadb1c3fa52 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 f9c54cf3e5..8f34d63f08 100644 --- a/OpenRA.Game/Server/Connection.cs +++ b/OpenRA.Game/Server/Connection.cs @@ -115,7 +115,7 @@ namespace OpenRA.Server 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;