always set connection-token

This commit is contained in:
Martin Aeschlimann 2022-01-21 17:37:36 +01:00
parent 0e771ea750
commit 3aeec48751
No known key found for this signature in database
GPG key ID: 2609A01E695523E3

View file

@ -40,7 +40,7 @@ const HOST = args['host'] ?? 'localhost';
const PORT = args['port'] ?? '9888';
const TOKEN = args['connection-token'] ?? String(crypto.randomInt(0xffffffff));
if (args['launch'] && args['connection-token'] === undefined && args['connection-token-file'] === undefined && !args['without-connection-token']) {
if (args['connection-token'] === undefined && args['connection-token-file'] === undefined && !args['without-connection-token']) {
serverArgs.push('--connection-token', TOKEN);
}
if (args['host'] === undefined) {