Code Monkey home page Code Monkey logo

subscribe2clash's Introduction


subscribe2clash

Clash配置转换

Github Actions

CHANGELOG

该改动仅方便于 trojan 443 端口被封的简单解决思路

  1. 粗暴修改了 trojan 部分的业务逻辑,当前 ?sub_link= 针对 trojan 订阅仅支持传入 trojan://xxx 链接

简介

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

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

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

启动服务

二进制

源码

命令

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

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

    ./main -b ./yourfile.yaml
    
  • 指定自定义碎片路由配置文件,可在该配置文件中自定义添加ACL碎片规则文件。可参考internal/acl/config/default_rules.ini

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

    ./main -o ./yourconfig.yaml
    
  • 启用http代理。由于网络原因,ACL的github源可能连接不上,你可能需要配合代理一起食用。

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

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

    ./main -t 6
    

参考

引用

subscribe2clash's People

Contributors

icpd avatar ziondoki 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.