feat: 支持托管中转主机和节点接入线路

This commit is contained in:
2026-09-30 17:36:17 +08:00
parent ac5fed695c
commit b6aa2bf30d
15 changed files with 1338 additions and 5 deletions
+3 -1
View File
@@ -1,3 +1,4 @@
import { appendRelaySubscriptionNodes } from "@/lib/relays";
import {
parseCustomProxyYaml,
extractProxyNameFromYaml,
@@ -1249,7 +1250,7 @@ export async function saveMainProxyGroupMemberSlugs(memberSlugs: string[]) {
export async function listSubscriptionNodes() {
const db = await ensureDb();
return db
const nodes = db
.prepare(
`
SELECT *
@@ -1259,6 +1260,7 @@ export async function listSubscriptionNodes() {
`,
)
.all() as Hy2NodeRow[];
return appendRelaySubscriptionNodes(db, nodes);
}
export async function writeAuthAudit(input: AuditRecordInput) {