This commit is contained in:
2023-09-12 18:40:24 +08:00
commit d894fea89e
25 changed files with 2179 additions and 0 deletions

37
README.md Normal file
View File

@ -0,0 +1,37 @@
# sub2clash
将订阅链接转换为 Clash、Clash.Meta 配置
## 特性
- 开箱即用的规则、策略组配置
- 自动根据节点名称按国家划分策略组
- 支持协议
- [x] Shadowsocks
- [x] ShadowsocksR
- [x] Vmess
- [x] Vless
- [x] Trojan
- [ ] Hysteria
- [ ] TUIC
- [ ] WireGuard
## API
### /clash
获取 Clash 配置链接
| Query 参数 | 类型 | 说明 |
| ---------- | ------ | --------------------------------- |
| sub | string | 订阅链接 |
| refresh | bool | 强制获取新配置(默认缓存 5 分钟) |
### /meta
获取 Meta 配置链接
| Query 参数 | 类型 | 说明 |
| ---------- | ------ | --------------------------------- |
| sub | string | 订阅链接 |
| refresh | bool | 强制获取新配置(默认缓存 5 分钟) |