Aktueller Stand

This commit is contained in:
2026-01-15 23:18:42 +01:00
parent 46eae2a2a9
commit dcf45bac3d
32 changed files with 2625 additions and 395 deletions

5
lib/request.ts Normal file
View File

@@ -0,0 +1,5 @@
export const getClientIp = (req: Request) => {
const forwarded = req.headers.get("x-forwarded-for") || req.headers.get("x-real-ip");
if (!forwarded) return "unknown";
return forwarded.split(",")[0].trim() || "unknown";
};