Testing ip

This commit is contained in:
2025-10-13 22:59:46 +02:00
parent e9cd05ff96
commit 583a6e021a
+2
View File
@@ -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" },