diff --git a/templates/clash/main.yaml b/templates/clash/main.yaml index 7040d3c195..6229166b2c 100644 --- a/templates/clash/main.yaml +++ b/templates/clash/main.yaml @@ -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: diff --git a/templates/clash/rule_sets.yaml b/templates/clash/rule_sets.yaml index 69288886d9..6432ac183a 100644 --- a/templates/clash/rule_sets.yaml +++ b/templates/clash/rule_sets.yaml @@ -101,4 +101,4 @@ rules: - RULE-SET,telegramcidr,Proxy - GEOIP,LAN,DIRECT - GEOIP,CN,DIRECT - - MATCH,DIRECT + - MATCH,Final