diff --git a/README.md b/README.md index b03da9574..5cd9e61f5 100644 --- a/README.md +++ b/README.md @@ -156,28 +156,29 @@ scheme://username:password@host:port ``` 配置新增 proxy 可指定代理 +靠前的 host 匹配到則使用該代理 ```json { "spider": "", "proxy": [ { - "name": "全局", + "name": "自訂", "hosts": [ - ".*." + "googlevideo.com", + "raw.githubusercontent.com" ], "urls": [ - "socks5://127.0.0.1:7891" + "http://127.0.0.1:7890" ] }, { - "name": "自訂", + "name": "全局", "hosts": [ - "googlevideo.com", - "raw.githubusercontent.com" + ".*." ], "urls": [ - "http://127.0.0.1:7890" + "socks5://127.0.0.1:7891" ] } ] diff --git a/other/sample/config.json b/other/sample/config.json index 7c4f4acd6..5e574c3b5 100644 --- a/other/sample/config.json +++ b/other/sample/config.json @@ -36,22 +36,22 @@ ], "proxy": [ { - "name": "全局", + "name": "自訂", "hosts": [ - ".*." + "googlevideo.com", + "raw.githubusercontent.com" ], "urls": [ - "socks5://127.0.0.1:7891" + "http://127.0.0.1:7890" ] }, { - "name": "自訂", + "name": "全局", "hosts": [ - "googlevideo.com", - "raw.githubusercontent.com" + ".*." ], "urls": [ - "http://127.0.0.1:7890" + "socks5://127.0.0.1:7891" ] } ],