I am using:
I have a problem with the electron proxy setting, it doesn't work with autoUpdater . On the main process I have this configuration :
session.defaultSession.setProxy({
proxyRules : proxyString
}, function () {
console.log("proxy ok")
});
This works in the entire electron app. I can see the logs on squid. AutoUpdater should use Electron Chrome Network API but in my case this not works, the method checkForUpdates
of AutoUpdater bypass the proxy. Is there something that I am missing?
setProxy is now a Promise. So now you need to put the last function into the .then() function. I hope this comment helps other people. this work for me:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.