You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
360 B
13 lines
360 B
import type { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
export default function handler(
|
|
req: NextApiRequest,
|
|
res: NextApiResponse
|
|
) {
|
|
// const getClientAddress = function (req) {
|
|
// return (req.headers['x-forwarded-for'] || '').split(',')[0]
|
|
// || req.connection.remoteAddress;
|
|
// };
|
|
// console.log(getClientAddress);
|
|
}
|
|
|