Caprine: Support for proxy

Created on 7 Oct 2015  路  5Comments  路  Source: sindresorhus/caprine

please add support for configuring proxy

Most helpful comment

really ?
I hoped find an Awesome Caprine, but i faced this issue

All 5 comments

No thanks

For anyone finding this issue, hope this helps:
I was looking for proxy support as well and have found the following worked for me.

Using electron's session API method setProxy callback I wrapped win.loadURL(mainURL); in index.js:201 as follows:

  win.webContents.session.setProxy({ proxyRules: 'http://proxy.foo.com:80' }, () => {
    win.loadURL(mainURL);
  })

Built the app and it works fine with the company proxy. Will just have to keep updating it manually when a new release comes out 馃槒

Guess this would be too much of a bother to read from ENV variables if present...

wow, no thanks? really ... wtf.

really ?
I hoped find an Awesome Caprine, but i faced this issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PanagiotisGts picture PanagiotisGts  路  4Comments

skymakai picture skymakai  路  3Comments

vogu66 picture vogu66  路  3Comments

kingmustard picture kingmustard  路  3Comments

Vexorify picture Vexorify  路  3Comments