Client 1.3.0: sends one-way hashes of the device's ids at sign-in and sign-up (device.js), for the server's hardware bans; says when the server needs a newer client, and when a device is banned

This commit is contained in:
Burrowdev committed 2026-10-17 21:35:38 +03:00
1 parent 87695c3250
commit a2b70affcc
5 files changed
+212 -12

No files matched your search

+2
View File
@@ -8,6 +8,8 @@ contextBridge.exposeInMainWorld("client", {
useServer: (serverUrl, gamePort, gameHost) => ipcRenderer.invoke("useServer", serverUrl, gamePort, gameHost),
// one of the server's /api calls ("status", "register", "ban"): {status, body, ms}.
api: (serverUrl, call, body) => ipcRenderer.invoke("api", serverUrl, call, body),
// hashes of this computer's ids, for the server's sign-in (device.js).
device: () => ipcRenderer.invoke("device"),
// the server's captcha ("login" or "signup") in a window of its own: its answer, or "" when there is none.
captcha: (serverUrl, action) => ipcRenderer.invoke("captcha", serverUrl, action),
setGpu: on => ipcRenderer.invoke("setGpu", on),