From 11c1e012d5dff1355cd5201b04d904ae94d46ea7 Mon Sep 17 00:00:00 2001 From: Kirill Date: Wed, 3 Jun 2026 18:52:44 +0500 Subject: [PATCH] add diaposine --- server/src/plugins/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/plugins/auth.js b/server/src/plugins/auth.js index 4fe9231..51016c1 100644 --- a/server/src/plugins/auth.js +++ b/server/src/plugins/auth.js @@ -22,6 +22,7 @@ export function registerAuth(fastify) { if (allowedList.length > 0) { const reqIp = normalizeIp(request.ip) + request.log.info({ reqIp, rawIp: request.ip }, '[auth] admin IP check') const isAllowed = allowedList.includes(reqIp) || allowedList.some((entry) => cidrMatch(reqIp, entry)) if (!isAllowed) { return reply.code(403).send({ error: 'Доступ с данного IP запрещён' })