Watfaq / clash-rs

custom protocol network proxy
https://watfaq.gitbook.io/clashrs-user-manual/
Apache License 2.0
542 stars 36 forks source link

Can rules configuration support GEOSITE? #441

Open vimt opened 1 month ago

vimt commented 1 month ago

GEOSITE file are easy to use. it only need to write one geosite file url instead of write a lot of rule-providers.

For example, clash-meta config:

geox-url:
  geosite: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat"

rules:
  - GEOSITE,category-ads-all,DENY
  - GEOSITE,private,DIRECT
  - GEOSITE,paypal,AUTO
  - GEOSITE,youtube,AUTO
  - GEOSITE,google,AUTO
  - GEOSITE,twitter,AUTO
  - GEOSITE,pixiv,AUTO
  - GEOSITE,category-scholar-!cn,AUTO
  - GEOSITE,biliintl,AUTO
  - GEOSITE,onedrive,DIRECT
  - GEOSITE,microsoft@cn,DIRECT
  - GEOSITE,apple-cn,DIRECT
  - GEOSITE,steam@cn,DIRECT
  - GEOSITE,category-games@cn,DIRECT
  - GEOSITE,geolocation-!cn,AUTO
  - GEOSITE,cn,DIRECT

Is there any plan to support this feature?

VendettaReborn commented 1 month ago

we can support that in a few days

ibigbug commented 22 hours ago

@VendettaReborn 's PR has landed on master.

You can find the build in pre-release. Please give it a try if you can.