From baa5b3d25ec43e6eb122e7bee7097c6e44a5ff8e Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 1 Jan 2020 18:05:58 +0000 Subject: [PATCH] Bypass fingerprint validation for skirmish/mission servers. --- OpenRA.Game/Server/Server.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index fa7439ca20..b41d292e2f 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -461,7 +461,13 @@ namespace OpenRA.Server SendOrderTo(newConn, "Message", "Bots have been disabled on this map."); }; - if (!string.IsNullOrEmpty(handshake.Fingerprint) && !string.IsNullOrEmpty(handshake.AuthSignature)) + if (Type == ServerType.Local) + { + // Local servers can only be joined by the local client, so we can trust their identity without validation + client.Fingerprint = handshake.Fingerprint; + completeConnection(); + } + else if (!string.IsNullOrEmpty(handshake.Fingerprint) && !string.IsNullOrEmpty(handshake.AuthSignature)) { waitingForAuthenticationCallback++;