fix(ui): сохранять недоступные шлюзы Filters
This commit is contained in:
1 parent
860e88ed3e
commit
0ab5a23eb3
7 files changed
+149
-30
No files matched your search
@@ -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 выбранного устройства недоступен" })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user