Block profiles with revoked keys from joining auth-only servers.
This commit is contained in:
@@ -499,10 +499,16 @@ namespace OpenRA.Server
|
|||||||
profile.ProfileName, profile.ProfileID);
|
profile.ProfileName, profile.ProfileID);
|
||||||
}
|
}
|
||||||
else if (profile.KeyRevoked)
|
else if (profile.KeyRevoked)
|
||||||
|
{
|
||||||
|
profile = null;
|
||||||
Log.Write("server", "{0} failed to authenticate as {1} (key revoked)", newConn.Socket.RemoteEndPoint, handshake.Fingerprint);
|
Log.Write("server", "{0} failed to authenticate as {1} (key revoked)", newConn.Socket.RemoteEndPoint, handshake.Fingerprint);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
profile = null;
|
||||||
Log.Write("server", "{0} failed to authenticate as {1} (signature verification failed)",
|
Log.Write("server", "{0} failed to authenticate as {1} (signature verification failed)",
|
||||||
newConn.Socket.RemoteEndPoint, handshake.Fingerprint);
|
newConn.Socket.RemoteEndPoint, handshake.Fingerprint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Log.Write("server", "{0} failed to authenticate as {1} (invalid server response: `{2}` is not `Player`)",
|
Log.Write("server", "{0} failed to authenticate as {1} (invalid server response: `{2}` is not `Player`)",
|
||||||
|
|||||||
Reference in New Issue
Block a user