feat: 支持自定义订阅节点并兼容现有数据库
This commit is contained in:
@@ -22,6 +22,10 @@ export async function verifyNodeToken(slug: string, token: string | null) {
|
||||
return { ok: false, reason: "node_disabled" as const, node };
|
||||
}
|
||||
|
||||
if (node.node_type !== "hy2") {
|
||||
return { ok: false, reason: "node_not_hy2" as const, node };
|
||||
}
|
||||
|
||||
if (!token || token !== node.auth_token) {
|
||||
return { ok: false, reason: "node_token_invalid" as const, node };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user