diff --git a/.vscode/launch.json b/.vscode/launch.json index 6f5673206..fd30fb9c5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -197,7 +197,7 @@ "env": { "FIXTURE_NAME": "gradle-groovy-default-build-file", "VSCODE_TEST": "true", - "HTTP_PROXY": "http://192.168.1.10", + "http_proxy": "http://0.0.0.0", "SUITE_NAME": "Run network tests with Gradle" }, "args": [ diff --git a/extension/src/client.ts b/extension/src/client.ts index 68c06b8e6..d807d80e1 100644 --- a/extension/src/client.ts +++ b/extension/src/client.ts @@ -90,7 +90,7 @@ export class GradleTasksClient implements vscode.Disposable { this.grpcClient = new GrpcClient( `localhost:${this.server.getPort()}`, grpc.credentials.createInsecure(), - { 'grpc.enable_http_proxy': 0 } + { 'grpc.enable_http_proxy': 1 } ); const deadline = new Date(); deadline.setSeconds(deadline.getSeconds() + this.connectDeadline); diff --git a/extension/src/test/runTests.ts b/extension/src/test/runTests.ts index 23eb5f60a..9791f815e 100644 --- a/extension/src/test/runTests.ts +++ b/extension/src/test/runTests.ts @@ -55,7 +55,8 @@ async function runNetworkTestsWithGradle( FIXTURE_NAME: fixture, VSCODE_TEST: 'true', SUITE_NAME: 'Run network tests with Gradle', - HTTP_PROXY: 'http://192.168.1.10', + // eslint-disable-next-line @typescript-eslint/camelcase + http_proxy: 'http://0.0.0.0', }, }); }