-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 增加节点去重 feat: 增加节点重命名 feat: 增加节点过滤 feat: 增加短链密码 modify: 修改模板解析逻辑,现在需要添加 <all>,<countries> 来让程序解析模板 modify: 修改短链请求逻辑,不再跳转链接,而是服务器内部请求 modify: 完善 Meta 默认模板 如果你从旧版升级,请务必修改或删除程序目录下的模板
- Loading branch information
Showing
15 changed files
with
386 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# `/clash`, `/meta` | ||
|
||
获取 Clash/Clash.Meta 配置链接 | ||
|
||
| Query 参数 | 类型 | 是否必须 | 默认值 | 说明 | | ||
|--------------|--------|-------------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| sub | string | sub/proxy 至少有一项存在 | - | 订阅链接(可以输入多个,用 `,` 分隔) | | ||
| proxy | string | sub/proxy 至少有一项存在 | - | 节点分享链接(可以输入多个,用 `,` 分隔) | | ||
| refresh | bool | 否 | `false` | 强制刷新配置(默认缓存 5 分钟) | | ||
| template | string | 否 | - | 外部模板链接或内部模板名称 | | ||
| ruleProvider | string | 否 | - | 格式 `[Behavior,Url,Group,Prepend,Name],[Behavior,Url,Group,Prepend,Name]...`,其中 `Group` 是该规则集使用的策略组名,`Prepend` 为 bool 类型,如果为 `true` 规则将被添加到规则列表顶部,否则添加到规则列表底部(会调整到MATCH规则之前) | | ||
| rule | string | 否 | - | 格式 `[Rule,Prepend],[Rule,Prepend]...`,其中 `Prepend` 为 bool 类型,如果为 `true` 规则将被添加到规则列表顶部,否则添加到规则列表底部(会调整到MATCH规则之前) | | ||
| autoTest | bool | 否 | `false` | 国家策略组是否自动测速 | | ||
| lazy | bool | 否 | `false` | 自动测速是否启用 lazy | | ||
| sort | string | 否 | `nameasc` | 国家策略组排序策略,可选值 `nameasc`、`namedesc`、`sizeasc`、`sizedesc` | | ||
| replace | string | 否 | - | 通过正则表达式重命名节点,格式 `[<ReplaceKey>,<ReplaceTo>],[<ReplaceKey>,<ReplaceTo>]...` | | ||
| remove | string | 否 | - | 通过正则表达式删除节点 | | ||
|
||
# `/short` | ||
|
||
获取短链,Content-Type 为 `application/json` | ||
具体参考使用可以参考 [api\templates\index.html](./api/templates/index.html) | ||
|
||
| Body 参数 | 类型 | 是否必须 | 默认值 | 说明 | | ||
|----------|--------|------|-----|------------------| | ||
| url | string | 是 | - | 需要转换的 Query 参数部分 | | ||
| password | string | 否 | - | 短链密码 | | ||
|
||
# `/s/:hash` | ||
|
||
短链跳转 | ||
`hash` 为动态路由参数,可以通过 `/short` 接口获取 | ||
|
||
| Query 参数 | 类型 | 是否必须 | 默认值 | 说明 | | ||
|----------|--------|------|-----|------| | ||
| password | string | 否 | - | 短链密码 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.