Bypass fingerprint validation for skirmish/mission servers.

This commit is contained in:
Paul Chote
2020-01-01 18:05:58 +00:00
committed by abcdefg30
parent 8f2bf27edf
commit baa5b3d25e

View File

@@ -461,7 +461,13 @@ namespace OpenRA.Server
SendOrderTo(newConn, "Message", "Bots have been disabled on this map."); 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++; waitingForAuthenticationCallback++;