私はそれを取得しません、私はいくつかのウェブサイトを除いてすべてのhttpリクエストを特定のドメインに転送しようとします。
1つの例外を除いて機能しています。
"/path/to/chrome.exe" --host-rules="MAP * www.domain.de,
EXCLUDE *.youtube.*"
しかし、私はそれを複数のドメインで動作させることはできません。
"/path/to/chrome.exe" --host-rules="MAP * www.domain.de,
EXCLUDE *.youtube.*" *.last.fm"
また
"/path/to/chrome.exe" --host-rules="MAP * www.domain.de,
EXCLUDE *.youtube.*", *.last.fm"
フォーマットエラーはどこにありますか?:-/
説明(http://peter.sh/experiments/chromium-command-line-switches/#host-rules)にあるように:
Comma-separated list of rules that control how hostnames are mapped.
For example: "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
"MAP *.google.com proxy" --> Forces all google.com subdomains to be resolved to "proxy".
"MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
Will also force the port of the resulting socket address to be 77. "MAP * baz, EXCLUDE www.google.com"
--> Remaps everything to "baz", except for "www.google.com".
These mappings apply to the endpoint host in a net::URLRequest
(the TCP connect and host resolver in a direct connection, and the CONNECT in an http proxy connection,
and the endpoint host in a SOCKS proxy connection).