feat: 接入 AnyTLS 节点托管和用户流量同步
This commit is contained in:
+2
-2
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user