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:
window.webContents.session.setProxy({ proxyString }).then(() => {console.log("proxyok")}).catch((err) => console.error(err));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With