Protect RCON diagnostics and redact player addresses (Refs #61)
This commit is contained in:
@@ -24,7 +24,7 @@ async function setup(count = 1) {
|
||||
const { monitoringStatusWriter } = await import('../../src/lib/server/fleet/health-observations.js');
|
||||
function publish(name: string, capacity: number | null | undefined = 4, observedAt = iso(), ok = true) {
|
||||
monitoringStatusWriter(name)({ observedAt: new Date().toISOString(), result: { ok: true, state: 'running' } },
|
||||
{ observedAt, result: ok ? { ok: true, endpoint: { host: 'localhost', port: 28960 }, rawReply: 'status',
|
||||
{ observedAt, result: ok ? { ok: true, endpoint: { host: 'localhost', port: 28960 },
|
||||
status: { players: 3, capacity, map: 'zombie_theater', gametype: 'zom', roster: [] } }
|
||||
: { ok: false, endpoint: null, reason: 'timeout', detail: 'No reply' } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user