Require hwid (#35331)
* Make cvar to require that the client has a modern hwid * Ignore guests and don't disable cvar on dev * Rename and add docs
This commit is contained in:
@@ -220,6 +220,11 @@ namespace Content.Server.Connection
|
||||
|
||||
var modernHwid = e.UserData.ModernHWIds;
|
||||
|
||||
if (modernHwid.Length == 0 && e.AuthType == LoginType.LoggedIn && _cfg.GetCVar(CCVars.RequireModernHardwareId))
|
||||
{
|
||||
return (ConnectionDenyReason.NoHwid, Loc.GetString("hwid-required"), null);
|
||||
}
|
||||
|
||||
var bans = await _db.GetServerBansAsync(addr, userId, hwId, modernHwid, includeUnbanned: false);
|
||||
if (bans.Count > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user