From 583a6e021a3eb6f4bb902aeae17a5fe273b3dc61 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Mon, 13 Oct 2025 22:59:46 +0200 Subject: [PATCH] Testing ip --- src/app/api/auth/route.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/api/auth/route.ts b/src/app/api/auth/route.ts index c2ce122..a8757e8 100644 --- a/src/app/api/auth/route.ts +++ b/src/app/api/auth/route.ts @@ -35,6 +35,8 @@ export async function GET(req: NextRequest) { req.headers.get("x-forwarded-for")?.split(",")[0] || "127.0.0.1"; + console.log("Auth request from IP:", ip); + if (auth.server_ip !== ip && ip !== "::1") { return NextResponse.json( { message: "Invalid address" },