Log server ID in connection logs table (#21911)

This commit is contained in:
Pieter-Jan Briers
2023-12-06 23:48:56 +01:00
committed by GitHub
parent e639006d42
commit b4f8393f42
16 changed files with 3690 additions and 11 deletions

View File

@@ -463,7 +463,8 @@ namespace Content.Server.Database
string userName,
IPAddress address,
ImmutableArray<byte> hwId,
ConnectionDenyReason? denied)
ConnectionDenyReason? denied,
int serverId)
{
await using var db = await GetDbImpl();
@@ -475,6 +476,7 @@ namespace Content.Server.Database
UserName = userName,
HWId = hwId.ToArray(),
Denied = denied,
ServerId = serverId
};
db.PgDbContext.ConnectionLog.Add(connectionLog);