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:
parent
5bacd34fb2
commit
e6f3b1ec2a
1 changed files with 2 additions and 1 deletions
|
@ -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 });
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue