feat: 接入 AnyTLS 节点托管和用户流量同步

This commit is contained in:
2026-09-29 13:35:44 +08:00
parent 586c2399d1
commit ac5fed695c
24 changed files with 1413 additions and 185 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ export type Hy2UserRow = {
updated_at: string;
};
export type NodeType = "hy2" | "custom";
export type NodeType = "hy2" | "custom" | "anytls";
export type Hy2NodeRow = {
id: number;
@@ -141,7 +141,7 @@ export function buildTrafficStatsUrl(serverHost: string, listen: string) {
}
export function normalizeNodeType(value: string | null | undefined): NodeType {
return value === "custom" ? "custom" : "hy2";
return value === "custom" ? "custom" : value === "anytls" ? "anytls" : "hy2";
}
export function getNodeProxyName(node: {