| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A high-performance profile converter for Surge and Clash.
convertor 可以将订阅提供商的配置转换为 Surge/Clash 客户端可用的配置,提供命令行工具和可选的 HTTP 服务。
cargo install convertor
# 或者克隆仓库自行编译
git clone https://github.com/BppleMan/convertor.git
cd convertor
cargo build --release启动服务(默认监听 127.0.0.1:8080):
convertor获取订阅链接:
convertor sub get clash bos-life --server http://127.0.0.1:8080顶层命令:
启动 Convertor 服务
Usage: convertor [OPTIONS] [LISTEN] [COMMAND]
Commands:
config 配置相关的子命令 获取配置模板, 生成配置文件等
sub 获取订阅提供商的订阅链接
install 安装 systemd 服务
配置子命令:
配置相关的子命令 获取配置模板, 生成配置文件等
Usage: convertor config [OPTIONS] [FILE] [COMMAND]
Commands:
template 获取配置模板
redis 从 Redis 获取配置
Options:
-p, --publish 是否发布配置到 Redis
订阅子命令:
获取订阅提供商的订阅链接
Usage: convertor sub [OPTIONS] <CLIENT> [PROVIDER] [COMMAND]
Commands:
get 使用 订阅提供商API 获取最新订阅链接
reset 使用重置的原始订阅链接
raw 解码 订阅提供商 的原始订阅链接
decode 解码 convertor 的完整订阅链接
Options:
-s, --server <SERVER> convertor 所在服务器的地址 格式为 `http://ip:port`
-i, --interval <INTERVAL> 订阅更新的间隔时间,单位为秒
-S, --strict <STRICT> 是否严格模式 [possible values: true, false]
-u, --update 是否更新本地订阅文件
运行测试:
cargo test本项目使用 Apache-2.0 许可证。
| Back | FazBrowse Home | New Git URL |