mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
feat(devices): hardware bans and alts need 3 matching IDs
A computer is taken for a banned one, and an account for an alt, only
when they share at least 3 hardware IDs (system, board, disk, the
client's own); one or two in common was too often someone else's.
Network card addresses still do not count. A hardware ban is refused
for an account with fewer than 3 IDs known, as it could match nobody.
MAC-only ("weak") alts no longer exist, so the flag is gone from the
panels.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
494f252c5b
commit
b22708a4ba
4 files changed
+61
-46
No files matched your search
+1
-1
@@ -1958,7 +1958,7 @@
|
||||
stateCell.append(el("span", "Hardware banned", "tag bad"));
|
||||
}
|
||||
row.append(el("td", alt.username), stateCell,
|
||||
el("td", alt.devices.length ? `${alt.devices.map(kind => KIND_NAMES[kind] || kind).join(", ")}${alt.weak ? " (weak)" : ""}` : "—"),
|
||||
el("td", alt.devices.length ? `${alt.devices.map(kind => KIND_NAMES[kind] || kind).join(", ")}` : "—"),
|
||||
el("td", alt.addresses ? String(alt.addresses) : "—", "num"));
|
||||
row.addEventListener("click", () => openAccount(alt.username));
|
||||
return row;
|
||||
|
||||
+1
-1
@@ -1504,7 +1504,7 @@
|
||||
const tags = stateTags({...alt, silenced: 0, nameRejected: false, moderator: false, role: null, banned: alt.banned});
|
||||
stateCell.append(...(tags.length ? tags.flatMap(tag => [tag, " "]) : ["—"]));
|
||||
row.append(el("td", alt.username), stateCell,
|
||||
el("td", alt.devices.length ? `${alt.devices.map(kind => KIND_NAMES[kind] || kind).join(", ")}${alt.weak ? " (weak)" : ""}` : "—"),
|
||||
el("td", alt.devices.length ? `${alt.devices.map(kind => KIND_NAMES[kind] || kind).join(", ")}` : "—"),
|
||||
el("td", alt.addresses ? String(alt.addresses) : "—", "num"));
|
||||
row.addEventListener("click", () => openPlayer(alt.username));
|
||||
return row;
|
||||
|
||||
Reference in new issue
Block a user