diff --git a/src/main/services/ProxyManager.ts b/src/main/services/ProxyManager.ts index 61a667e1f0..0b0df1d6f1 100644 --- a/src/main/services/ProxyManager.ts +++ b/src/main/services/ProxyManager.ts @@ -87,10 +87,11 @@ export class ProxyManager { // Set new interval this.systemProxyInterval = setInterval(async () => { const currentProxy = await getSystemProxy() - if (currentProxy && currentProxy.proxyUrl.toLowerCase() === this.config?.proxyRules) { + if (currentProxy?.proxyUrl.toLowerCase() === this.config?.proxyRules) { return } + logger.info(`system proxy changed: ${currentProxy?.proxyUrl}, this.config.proxyRules: ${this.config.proxyRules}`) await this.configureProxy({ mode: 'system', proxyRules: currentProxy?.proxyUrl.toLowerCase(),