unique IP heartbeats

This commit is contained in:
yourfriend 2022-07-10 17:54:16 +03:00
parent 11700fe211
commit 41a19c26a6
No known key found for this signature in database
GPG key ID: C28FFD8607DAC4DE
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ export class Server {
"&public=True" +
"&software=Cla66ic" +
`&version=7&salt=${config.hash}` +
`&users=${this.players.length}`,
`&users=${[...new Set(this.players.map(obj => obj.ip))].length}`
);
}, 10000);
}