File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,21 @@ export async function getSystemProxyConfig(): Promise<ProxyConfig | undefined> {
41
41
return undefined ;
42
42
}
43
43
} else {
44
- const proxyUrl = process . env . HTTPS_PROXY ||
45
- process . env . HTTP_PROXY ||
46
- process . env . https_proxy ||
47
- process . env . http_proxy ;
44
+ const {
45
+ HTTPS_PROXY ,
46
+ https_proxy,
47
+ HTTP_PROXY ,
48
+ http_proxy,
49
+ NO_PROXY ,
50
+ no_proxy
51
+ } = process . env ;
52
+
53
+ const proxyUrl = HTTPS_PROXY || HTTP_PROXY || https_proxy || http_proxy ;
48
54
49
55
if ( ! proxyUrl ) return undefined ;
50
56
51
- const noProxy = process . env . NO_PROXY
52
- ? process . env . NO_PROXY . split ( ',' )
57
+ const noProxy = ! ! ( NO_PROXY || no_proxy )
58
+ ? ( NO_PROXY || no_proxy ) ! . split ( ',' )
53
59
: undefined ;
54
60
55
61
return {
You can’t perform that action at this time.
0 commit comments