Harden packaged identity and local listener binding

This commit is contained in:
Sucukdeluxe
2026-08-13 20:49:48 +02:00
parent 4630c8c467
commit 31b5766254
6 changed files with 97 additions and 39 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ class RemoteServer {
return new Promise((resolve, reject) => {
this._config = opts;
const wssOpts = { port: opts.port, maxPayload: 256 * 1024 };
if (opts.host) wssOpts.host = opts.host;
const wssOpts = { port: opts.port, host: opts.host || '127.0.0.1', maxPayload: 256 * 1024 };
this._wss = new WebSocketServer(wssOpts, () => {
resolve();
});