Add documentation for --proxy-bypass-list
Depends on atom/brightray#179
This commit is contained in:
parent
f374508a61
commit
baab0486f0
1 changed files with 18 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
# Supported Chrome command line switches
|
# Supported Chrome command line switches
|
||||||
|
|
||||||
This page lists the command line switches used by the Chrome browser that are also supported by
|
This page lists the command line switches used by the Chrome browser that are
|
||||||
Electron. You can use [app.commandLine.appendSwitch][append-switch] to append
|
also supported by Electron. You can use
|
||||||
them in your app's main script before the [ready][ready] event of [app][app]
|
[app.commandLine.appendSwitch][append-switch] to append them in your app's main
|
||||||
module is emitted:
|
script before the [ready][ready] event of [app][app] module is emitted:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const app = require('electron').app;
|
const app = require('electron').app;
|
||||||
|
@ -47,6 +47,20 @@ only affects requests with HTTP protocol, including HTTPS and WebSocket
|
||||||
requests. It is also noteworthy that not all proxy servers support HTTPS and
|
requests. It is also noteworthy that not all proxy servers support HTTPS and
|
||||||
WebSocket requests.
|
WebSocket requests.
|
||||||
|
|
||||||
|
## --proxy-bypass-list=`hosts`
|
||||||
|
|
||||||
|
Instructs Electron to bypass the proxy server for the given semi-colon-separated
|
||||||
|
list of hosts. This flag has an effect only if used in tandem with
|
||||||
|
`--proxy-server`.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
`app.commandLine.appendSwitch('proxy-bypass-list', '<local>;*.google.com;*foo.com;1.2.3.4:5678')`
|
||||||
|
|
||||||
|
Will use the proxy server for all hosts except for local addresses (localhost,
|
||||||
|
127.0.0.1 etc.), google.com subdomains, hosts that contain the suffix foo.com
|
||||||
|
and anything at 1.2.3.4:5678.
|
||||||
|
|
||||||
## --proxy-pac-url=`url`
|
## --proxy-pac-url=`url`
|
||||||
|
|
||||||
Uses the PAC script at the specified `url`.
|
Uses the PAC script at the specified `url`.
|
||||||
|
|
Loading…
Reference in a new issue