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" },