mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
More strict SSL proxy setting fixes (#22404)
This commit is contained in:
@@ -72,7 +72,7 @@ export class AzureMonitorServer {
|
|||||||
this.config = JSON.parse(rawConfig.toString())!;
|
this.config = JSON.parse(rawConfig.toString())!;
|
||||||
this.config.installDirectory = path.join(__dirname, this.config.installDirectory);
|
this.config.installDirectory = path.join(__dirname, this.config.installDirectory);
|
||||||
this.config.proxy = vscode.workspace.getConfiguration('http').get<string>('proxy')!;
|
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);
|
const serverdownloader = new ServerProvider(this.config);
|
||||||
serverdownloader.eventEmitter.onAny(generateHandleServerProviderEvent());
|
serverdownloader.eventEmitter.onAny(generateHandleServerProviderEvent());
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class ServiceClient {
|
|||||||
const config: IConfig = JSON.parse(rawConfig.toString());
|
const config: IConfig = JSON.parse(rawConfig.toString());
|
||||||
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
|
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
|
||||||
config.proxy = this.apiWrapper.getConfiguration('http').get('proxy');
|
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);
|
const serverdownloader = new ServerProvider(config);
|
||||||
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
|
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export class ServiceClient {
|
|||||||
const config = JSON.parse(rawConfig.toString());
|
const config = JSON.parse(rawConfig.toString());
|
||||||
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
|
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
|
||||||
config.proxy = vscode.workspace.getConfiguration('http').get('proxy');
|
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);
|
const serverdownloader = new ServerProvider(config);
|
||||||
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
|
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
|
||||||
return serverdownloader.getOrDownloadServer();
|
return serverdownloader.getOrDownloadServer();
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export class KustoServer {
|
|||||||
this.config = JSON.parse(rawConfig.toString())!;
|
this.config = JSON.parse(rawConfig.toString())!;
|
||||||
this.config.installDirectory = path.join(__dirname, this.config.installDirectory);
|
this.config.installDirectory = path.join(__dirname, this.config.installDirectory);
|
||||||
this.config.proxy = vscode.workspace.getConfiguration('http').get<string>('proxy')!;
|
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);
|
const serverdownloader = new ServerProvider(this.config);
|
||||||
serverdownloader.eventEmitter.onAny(generateHandleServerProviderEvent());
|
serverdownloader.eventEmitter.onAny(generateHandleServerProviderEvent());
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export class ServiceClient {
|
|||||||
const config = JSON.parse(rawConfig.toString());
|
const config = JSON.parse(rawConfig.toString());
|
||||||
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
|
config.installDirectory = path.join(context.extensionPath, config.installDirectory);
|
||||||
config.proxy = vscode.workspace.getConfiguration('http').get('proxy');
|
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);
|
const serverdownloader = new ServerProvider(config);
|
||||||
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
|
serverdownloader.eventEmitter.onAny(this.generateHandleServerProviderEvent());
|
||||||
return serverdownloader.getOrDownloadServer();
|
return serverdownloader.getOrDownloadServer();
|
||||||
|
|||||||
Reference in New Issue
Block a user