mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
api test 4 debug
This commit is contained in:
@@ -4,5 +4,6 @@ export default async function ip(req: NextApiRequest, res: NextApiResponse){
|
|||||||
let cf = req.headers['cf-connecting-ip'];
|
let cf = req.headers['cf-connecting-ip'];
|
||||||
let xff = req.headers['x-forwarded-for'];
|
let xff = req.headers['x-forwarded-for'];
|
||||||
let xri = req.headers['x-real-ip'];
|
let xri = req.headers['x-real-ip'];
|
||||||
res.status(200).json({ cf: cf, xff: xff, xri: xri });
|
let cra = req.connection.remoteAddress;
|
||||||
|
res.status(200).json({ cf: cf, xff: xff, xri: xri, cra: cra });
|
||||||
}
|
}
|
Reference in New Issue
Block a user