fix(ui): сохранять недоступные шлюзы Filters

This commit is contained in:
Denozordec committed 2026-09-30 12:21:00 +07:00
1 parent 860e88ed3e
commit 0ab5a23eb3
7 files changed
+149 -30

No files matched your search

+3 -2
View File
@@ -472,8 +472,9 @@ const filtersRoutes: FastifyPluginAsyncZod = async (app) => {
try {
const remote = await fetchServerFilters(server)
return reply.send({ tunnels: remote.tunnels })
} catch {
return reply.send({ tunnels: [] as LiveGreTunnel[] })
} catch (error) {
app.log.warn({ serverId: sid, err: String(error) }, "filters GRE catalog unavailable")
return reply.status(503).send({ error: "Каталог GRE выбранного устройства недоступен" })
}
}