We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd7e363 + 4628813 commit 4756382Copy full SHA for 4756382
src/index.ts
@@ -51,12 +51,12 @@ export async function getWindowsSystemProxy(): Promise<WindowsProxySettings | un
51
.map((proxyPair) => proxyPair.split('=') as [string, string])
52
);
53
54
- const proxyUrl = proxies['https']
55
- ? `https://${proxies['https']}`
56
- : proxies['http']
+ const proxyUrl = proxies['http']
57
? `http://${proxies['http']}`
58
: proxies['socks']
59
? `socks://${proxies['socks']}`
+ : proxies['https']
+ ? `http://${proxies['https']}`
60
: undefined;
61
62
if (!proxyUrl) {
0 commit comments