abbrlink: ''
categories: []
date: '2023-08-02T10:10:56.161777+08:00'
tags: []
title: Clash 梯子负载均衡
updated: 2023-8-2T10:26:26.512+8:0

Clash 负载均衡

添加代码

https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/image_ddc4f56e0f4f9c5d0a22377e8d3c7fe5.png

https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/image_84b50324bcb3694f705f6a86795ded77.png

  • 点击把下方代码填入

https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/image_c2fc52e39371bba46c72087e22a23d96.png

parsers:
  - reg: 'slbable$'
    yaml:
      append-proxy-groups:
        - name: ⚖️ 负载均衡-散列
          type: load-balance
          url: 'http://www.google.com/generate_204'
          interval: 300
          strategy: consistent-hashing
        - name: ⚖️ 负载均衡-轮询
          type: load-balance
          url: 'http://www.google.com/generate_204'
          interval: 300
          strategy: round-robin
      commands:
        - proxy-groups.⚖️ 负载均衡-散列.proxies=[]proxyNames
        - proxy-groups.0.proxies.0+⚖️ 负载均衡-散列
        - proxy-groups.⚖️ 负载均衡-轮询.proxies=[]proxyNames
        - proxy-groups.0.proxies.0+⚖️ 负载均衡-轮询

  • 记得保存

修改代理

  • 订阅-右键-设置-url后面添加#slbable

https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/image_d502a82e8af9fb31d3ee73d454aed316.png

结束

  • 更新一下订阅
  • 查看订阅列表

https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/image_89d46225e7bfb46d5e35e58216c626fc.png