diff options
author | Martin Aeschlimann <martinae@microsoft.com> | 2022-01-21 19:37:36 +0300 |
---|---|---|
committer | Martin Aeschlimann <martinae@microsoft.com> | 2022-01-21 19:42:35 +0300 |
commit | 3aeec48751a7f397f8a9951ad678cf66d3bfa3d9 (patch) | |
tree | 42fa74c42683034d7cf5ab2e4890d5d081e79366 /scripts | |
parent | 0e771ea75066c1aab0aea5dd56111ddc53d06f7b (diff) |
always set connection-token
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/code-server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/code-server.js b/scripts/code-server.js index 287b229bdda..ec2fd65ec7f 100644 --- a/scripts/code-server.js +++ b/scripts/code-server.js @@ -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) { |