我正在使用:
- Electron 1.7.9
- Aurelia
我在electron代理设置方面遇到了问题,它无法与autoUpdater一起使用。在主进程中,我有以下配置:
session.defaultSession.setProxy({
proxyRules : proxyString
}, function () {
console.log("proxy ok")
});
这适用于整个Electron应用程序。我可以在Squid上看到日志。AutoUpdater应该使用Electron Chrome Network API,但在我的情况下,这并不起作用,AutoUpdater的checkForUpdates
方法绕过了代理。我是否漏掉了什么?
mainWindow.webContents.session.setProxy
来设置您的代理。 - tpikachu