diff --git a/src/main/services/ProxyManager.ts b/src/main/services/ProxyManager.ts index 5a839a13..dd08e1c8 100644 --- a/src/main/services/ProxyManager.ts +++ b/src/main/services/ProxyManager.ts @@ -139,7 +139,8 @@ export class ProxyManager { setGlobalProxy() { const proxyUrl = this.proxyUrl if (proxyUrl) { - const [protocol, host, port] = proxyUrl.split(':') + const [protocol, address] = proxyUrl.split('://') + const [host, port] = address.split(':') if (!protocol.includes('socks')) { setGlobalDispatcher(new ProxyAgent(proxyUrl)) } else {