mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
always set connection-token
This commit is contained in:
@@ -40,7 +40,7 @@ const HOST = args['host'] ?? 'localhost';
|
|||||||
const PORT = args['port'] ?? '9888';
|
const PORT = args['port'] ?? '9888';
|
||||||
const TOKEN = args['connection-token'] ?? String(crypto.randomInt(0xffffffff));
|
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);
|
serverArgs.push('--connection-token', TOKEN);
|
||||||
}
|
}
|
||||||
if (args['host'] === undefined) {
|
if (args['host'] === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user