Archived
1
0

fix: infinite proxy loop (#4676)

I think the problem is that when a proxy is not in use proxy-agent
returns the global agent...which is itself since we set it globally,
causing the loop.

VS Code already covers proxies meaning we only need to do it in our own
requests so to fix this pass in the agent in the version fetch request
instead of overidding globally.

Also avoid proxy-from-env and pass in the proxy URI instead as both
http_proxy and https_proxy can be used for either http or https requests
but it does not allow that.
This commit is contained in:
Asher
2022-01-03 18:19:21 -06:00
committed by GitHub
parent 47f0b6f4fa
commit 003480881b
7 changed files with 41 additions and 128 deletions

View File

@ -92,7 +92,6 @@
"limiter": "^1.1.5",
"pem": "^1.14.2",
"proxy-agent": "^5.0.0",
"proxy-from-env": "^1.1.0",
"qs": "6.10.2",
"rotating-file-stream": "^3.0.0",
"safe-buffer": "^5.1.1",