Skip to content

Commit 3efd515

Browse files
committed
proxy_agent: Fix very embarrassing mistake
1 parent 386af14 commit 3efd515

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node/proxy_agent.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function monkeyPatch(vscode: boolean): void {
3232
return
3333
}
3434

35-
logger.debug(`using $HTTP_PROXY ${process.env.HTTP_PROXY}`)
35+
logger.debug(`using $HTTP_PROXY ${proxyURL}`)
3636

3737
let pa: http.Agent
3838
// The reasoning for this split is that VS Code's build process does not have
@@ -42,9 +42,9 @@ export function monkeyPatch(vscode: boolean): void {
4242
// I can't enable esModuleInterop in VS Code's build process as it breaks and spits out
4343
// a huge number of errors.
4444
if (vscode) {
45-
pa = new (proxyagent as any)(process.env.HTTP_PROXY)
45+
pa = new (proxyagent as any)(proxyURL)
4646
} else {
47-
pa = new (proxyagent as any).default(process.env.HTTP_PROXY)
47+
pa = new (proxyagent as any).default(proxyURL)
4848
}
4949

5050
/**

0 commit comments

Comments
 (0)