feat: 支持托管中转主机和节点接入线路
This commit is contained in:
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user