fix(relay): authenticate endpoints and fail closed on missing routes

This commit is contained in:
sagitchu
2026-11-08 23:31:08 +08:00
parent 46bfb86c1b
commit 7f0177491b
50 changed files with 5405 additions and 277 deletions
+13 -1
View File
@@ -926,7 +926,19 @@ export default function TunnelPage() {
: await createTunnel(data);
if (response.code === 0) {
toast.success(isEdit ? "更新成功" : "创建成功");
if (
response.data &&
typeof response.data === "object" &&
"runtimeStatus" in response.data &&
response.data.runtimeStatus === "pending"
) {
toast(response.msg || "配置已保存,部分节点运行时待同步", {
icon: "⚠️",
duration: 6000,
});
} else {
toast.success(isEdit ? "更新成功" : "创建成功");
}
setModalOpen(false);
await refreshTunnelList(false);
} else {