mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
ip api test 2
This commit is contained in:
@@ -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