Protect RCON diagnostics and redact player addresses (Refs #61)
This commit is contained in:
@@ -38,7 +38,7 @@ beforeEach(async () => {
|
||||
const { rconGetPlayerCount, rconStatusResult } = await import('../../src/lib/server/integrations/rcon.js');
|
||||
vi.mocked(rconGetPlayerCount).mockResolvedValue(0);
|
||||
vi.mocked(rconStatusResult).mockResolvedValue({
|
||||
ok: true, endpoint: { host: 'test', port: 28960 }, rawReply: '',
|
||||
ok: true, endpoint: { host: 'test', port: 28960 },
|
||||
status: { players: 0, map: 'zombie_theater', gametype: 'zom', roster: [] }
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user