Chuan Hu commited on
Commit
be104ff
·
unverified ·
1 Parent(s): d759751

更新Clash和Surge规则为规则集

Browse files
Files changed (1) hide show
  1. README.md +11 -3
README.md CHANGED
@@ -297,16 +297,24 @@ pip install urllib3==1.25.11
297
  例如,在Clash配置文件中,加入:
298
 
299
  ```
 
 
 
 
 
 
 
 
300
  rules:
301
- - IP-CIDR,127.0.0.1,DIRECT
302
- - DOMAIN-SUFFIX,openai.com,你的代理规则
303
  ```
304
 
305
  Surge:
306
 
307
  ```
308
  [Rule]
309
- DOMAIN,127.0.0.1,DIRECT
310
  DOMAIN-SUFFIX,openai.com,你的代理规则
311
  ```
312
  </details>
 
297
  例如,在Clash配置文件中,加入:
298
 
299
  ```
300
+ rule-providers:
301
+ private:
302
+ type: http
303
+ behavior: domain
304
+ url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
305
+ path: ./ruleset/ads.yaml
306
+ interval: 86400
307
+
308
  rules:
309
+ - RULE-SET,private,DIRECT
310
+ - DOMAIN-SUFFIX,openai.com,你的代理规则
311
  ```
312
 
313
  Surge:
314
 
315
  ```
316
  [Rule]
317
+ DOMAIN-SET,https://cdn.jsdelivr.net/gh/Loyalsoldier/surge-rules@release/private.txt,DIRECT
318
  DOMAIN-SUFFIX,openai.com,你的代理规则
319
  ```
320
  </details>