aida
deepin
2019-04-12 23:31 棒棒哒

Reply Like 0 View the author


Let me start by summarizing the issue.
When Chrome is run with NetworkService enabled (which is currently being experimented with on Stable channel), there isn't support for PAC scripts using the file://, so configurations using them will fail to fetch the PAC script and default to DIRECT connections.
Current mitigations include:
(1) Launch with --disable-features=NetworkService
(2) Run a local HTTP server, and then point to the PAC file as http://localhost/... rather than file://...
For instance:
$ python -m SimpleHTTPServer 8000
$ google-chrome --proxy-pac-url="http://localhost:8000/script.js"
(3) Use a Chrome extension to manage your PAC file instead of using a file:// URL.
(4) Convert the file:// URL to a data: URL
For instance:
$ google-chrome --proxy-pac-url='data:application/*-config;base64,'$(base64 -w0 /path/to/pac/script)
The histogram data (Net.ProxyResolutionService.PacUrlScheme) for frequency of file:// URL based PAC scripts on Stable channel:
* Windows: 0.7%
* macOS / Linux: 1.5% // 倒霉的多是linux用户????
* ChromeOS / Android: 0%
https://bbs.deepin.org/post/176701
https://bugs.chromium.org/p/chromium/issues/detail?id=839566&q=pac&colspec=ID%20Pri%20M%20Stars%20Re ...
https://bbs.deepin.org/post/176701
https://bugs.chromium.org/p/chromium/issues/detail?id=839566&q=pac&colspec=ID%20Pri%20M%20Stars%20Re ...
https://bbs.deepin.org/post/176701
求教一下这个参数的格式是怎么样的,我添加了--proxy-pac-url='data:application/*-config;ba ...
似乎是72+版本后,Chrome作了一些变更引起的。解决办法是:
地址栏输入:chrome://flags
然后找到Enable network service选项,设置为Disabled即可。
Hope this help you!
Across the great wall we can reach every corner in the world!