Skip to content

Commit

Permalink
Disable max order length check for local servers.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Jan 25, 2023
1 parent 474de01 commit 809b25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Game/Server/Connection.cs
Expand Up @@ -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;
Expand Down

0 comments on commit 809b25e

Please sign in to comment.