Skip to content

Commit

Permalink
fix: 自定义规则更改为http订阅方式
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaov committed Apr 11, 2024
1 parent 185d713 commit 5c98571
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 6 additions & 2 deletions clash/clash/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,13 +601,17 @@ rule-providers:
path: ./ruleset/Domestic_IPs
interval: 86400
MyBlacklist:
type: file
type: http
behavior: classical # domain, ipcidr or classical (仅限 Clash Premium 内核)
url: https://raw.githubusercontent.com/vxiaov/vClash/ksmerlin386/clash/clash/ruleset/my_blacklist.yaml
path: ./ruleset/my_blacklist.yaml
interval: 86400
MyWhitelist:
type: file
type: http
behavior: classical
url: https://raw.githubusercontent.com/vxiaov/vClash/ksmerlin386/clash/clash/ruleset/my_whitelist.yaml
path: ./ruleset/my_whitelist.yaml
interval: 86400

rules:
- IP-CIDR,198.18.0.1/16,REJECT,no-resolve
Expand Down
8 changes: 6 additions & 2 deletions clash/clash/config/config_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,13 +601,17 @@ rule-providers:
path: ./ruleset/Domestic_IPs
interval: 86400
MyBlacklist:
type: file
type: http
behavior: classical # domain, ipcidr or classical (仅限 Clash Premium 内核)
url: https://raw.githubusercontent.com/vxiaov/vClash/ksmerlin386/clash/clash/ruleset/my_blacklist.yaml
path: ./ruleset/my_blacklist.yaml
interval: 86400
MyWhitelist:
type: file
type: http
behavior: classical
url: https://raw.githubusercontent.com/vxiaov/vClash/ksmerlin386/clash/clash/ruleset/my_whitelist.yaml
path: ./ruleset/my_whitelist.yaml
interval: 86400

rules:
- IP-CIDR,198.18.0.1/16,REJECT,no-resolve
Expand Down
10 changes: 7 additions & 3 deletions clash/clash/config/config_diy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,17 @@ rule-providers:
path: ./ruleset/LAN
interval: 86400
MyBlacklist:
type: file
behavior: classical
type: http
behavior: classical # domain, ipcidr or classical (仅限 Clash Premium 内核)
url: https://raw.githubusercontent.com/vxiaov/vClash/ksmerlin386/clash/clash/ruleset/my_blacklist.yaml
path: ./ruleset/my_blacklist.yaml
interval: 86400
MyWhitelist:
type: file
type: http
behavior: classical
url: https://raw.githubusercontent.com/vxiaov/vClash/ksmerlin386/clash/clash/ruleset/my_whitelist.yaml
path: ./ruleset/my_whitelist.yaml
interval: 86400

# 匹配规则配置(根据规则路由)
rules:
Expand Down

0 comments on commit 5c98571

Please sign in to comment.