Skip to content

Commit 557c1e5

Browse files
committed
Fix bug in Mac SOCKS proxy detection
1 parent 5d25e47 commit 557c1e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/detect-proxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export async function getSystemProxyConfig(): Promise<ProxyConfig | undefined> {
3232
proxyUrl: `http://${proxySettings.HTTPProxy}:${proxySettings.HTTPPort}`,
3333
noProxy
3434
};
35-
} else if (proxySettings.SOCKSEnable && proxySettings.SOCKSProxy && proxySettings.SOCKSProxy) {
35+
} else if (proxySettings.SOCKSEnable && proxySettings.SOCKSProxy && proxySettings.SOCKSPort) {
3636
return {
37-
proxyUrl: `socks://${proxySettings.SOCKSProxy}:${proxySettings.SOCKSProxy}`,
37+
proxyUrl: `socks://${proxySettings.SOCKSProxy}:${proxySettings.SOCKSPort}`,
3838
noProxy
3939
};
4040
} else {

0 commit comments

Comments
 (0)