Skip to content

Commit

Permalink
clash: fix final rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Oct 6, 2023
1 parent ac7fc6d commit 11234bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions templates/clash/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ proxy-groups:
proxies:
- auto
use:
- {{ provider_name }}

- name: Final
type: select
proxies:
- DIRECT
- Proxy
- { { provider_name } }

- name: auto
type: url-test
use:
- {{ provider_name }}
url: 'http://www.gstatic.com/generate_204'
- { { provider_name } }
url: "http://www.gstatic.com/generate_204"
interval: 300
tolerance: 150
lazy: true

- name: Final
type: select
proxies:
- DIRECT
- Proxy

proxy-providers:
{{ provider_name }}:
{ { provider_name } }:
type: http
url: {{ proxy_provider_url }}
url: { { proxy_provider_url } }
interval: 3600
path: ./providers/{{ provider_name }}.yaml
health-check:
Expand Down
2 changes: 1 addition & 1 deletion templates/clash/rule_sets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ rules:
- RULE-SET,telegramcidr,Proxy
- GEOIP,LAN,DIRECT
- GEOIP,CN,DIRECT
- MATCH,DIRECT
- MATCH,Final

0 comments on commit 11234bc

Please sign in to comment.