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
|
||||
|
||||
This page lists the command line switches used by the Chrome browser that are also supported by
|
||||
Electron. You can use [app.commandLine.appendSwitch][append-switch] to append
|
||||
them in your app's main script before the [ready][ready] event of [app][app]
|
||||
module is emitted:
|
||||
This page lists the command line switches used by the Chrome browser that are
|
||||
also supported by Electron. You can use
|
||||
[app.commandLine.appendSwitch][append-switch] to append them in your app's main
|
||||
script before the [ready][ready] event of [app][app] module is emitted:
|
||||
|
||||
```javascript
|
||||
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
|
||||
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`
|
||||
|
||||
Uses the PAC script at the specified `url`.
|
||||
|
|
Loading…
Reference in a new issue