get real ip
This commit is contained in:
@@ -29,7 +29,7 @@ export function errorHandler(
|
||||
stack: error.stack,
|
||||
url: req.url,
|
||||
method: req.method,
|
||||
ip: req.ip,
|
||||
ip: (req.headers['x-forwarded-for'] as string) || req.socket.remoteAddress,
|
||||
userAgent: req.get('User-Agent')
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user