More strict SSL proxy setting fixes (#22404)

This commit is contained in:
Charles Gagnon
2023-03-22 12:45:51 -07:00
committed by GitHub
parent a3e77c674c
commit ca4722360a
5 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ export class AzureMonitorServer {
this.config = JSON.parse(rawConfig.toString())!;
this.config.installDirectory = path.join(__dirname, this.config.installDirectory);
this.config.proxy = vscode.workspace.getConfiguration('http').get<string>('proxy')!;
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL') || true;
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL', true);
const serverdownloader = new ServerProvider(this.config);
serverdownloader.eventEmitter.onAny(generateHandleServerProviderEvent());

View File

@@ -30,7 +30,7 @@ export class ServiceClient {
const config: IConfig = JSON.parse(rawConfig.toString());
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
config.proxy = this.apiWrapper.getConfiguration('http').get('proxy');
config.strictSSL = this.apiWrapper.getConfiguration('http').get('proxyStrictSSL') || true;
config.strictSSL = this.apiWrapper.getConfiguration('http').get('proxyStrictSSL', true);
const serverdownloader = new ServerProvider(config);
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());

View File

@@ -68,7 +68,7 @@ export class ServiceClient {
const config = JSON.parse(rawConfig.toString());
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
config.proxy = vscode.workspace.getConfiguration('http').get('proxy');
config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL') || true;
config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL', true);
const serverdownloader = new ServerProvider(config);
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
return serverdownloader.getOrDownloadServer();

View File

@@ -70,7 +70,7 @@ export class KustoServer {
this.config = JSON.parse(rawConfig.toString())!;
this.config.installDirectory = path.join(__dirname, this.config.installDirectory);
this.config.proxy = vscode.workspace.getConfiguration('http').get<string>('proxy')!;
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL') || true;
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL', true);
const serverdownloader = new ServerProvider(this.config);
serverdownloader.eventEmitter.onAny(generateHandleServerProviderEvent());

View File

@@ -81,7 +81,7 @@ export class ServiceClient {
const config = JSON.parse(rawConfig.toString());
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
config.proxy = vscode.workspace.getConfiguration('http').get('proxy');
config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL') || true;
config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL', true);
const serverdownloader = new ServerProvider(config);
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
return serverdownloader.getOrDownloadServer();