mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-04-28 19:27:40 +02:00
ip api test 2
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
export default async function ip(req: NextApiRequest, res: NextApiResponse){
|
||||
const ip = (req.headers['x-forwarded-for' || 'x-vercel-forwarded-for']);
|
||||
let ip = req.headers['cf-connecting-ip']
|
||||
res.json({ ip: ip });
|
||||
}
|
||||
Reference in New Issue
Block a user