Giter VIP home page Giter VIP logo

subscribe2clash's Introduction


subscribe2clash

Clash规则配置转换

Github Actions

简介

Clash规则配置转换,自动获取ACL4SSR路由规则。

支持v2ray\trojan\ss\ssr\ssd订阅转换。暂不支持单节点转换

支持多订阅一起转换,多个订阅连接用英文逗号隔开。

启动服务

二进制

源码

命令

  • 如果只想生成clash配置文件(没有节点数据),不启用api服务,可使用命令

    ./main -gc
    
  • 指定自定义基础配置文件,可在里面添加自定义的路由规则,程序将按照这个文件写入路由信息,可以参考config/clash/base_clash.yaml%s将被程序替换为ACL的路由规则。

    ./main -b ./yourfile.yaml
    
  • 指定输出的配置文件。默认情况下配置文件会输出为./config/clash/acl.yaml,可以通过以下命令来重新指定。

    ./main -o ./yourconfig.yaml
    
  • 获取ACL规则的源地址。cn:国内镜像(更新可能没有github及时),github:github获取。默认从github获取。

    ./main -origin github
    ./main -origin cn
    
  • 启用http代理。由于网络原因,ACL的github源可能连接不上,但又不想使用镜像时,你可能需要配合代理一起食用。

    ./main -proxy http://127.0.0.1:7890
    
  • 指定api服务监听端口,默认监听8162端口。

    ./main -p 8162
    
  • 指定更新规则频率,单位小时,默认每6小时拉取一次。

    ./main -t 6
    

参考

引用

测试地址

http://47.106.211.213:8162/?sub_link=yourlink

subscribe2clash's People

Contributors

icpd avatar

Stargazers

Ted Zhou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.