Proxy forwarded IP in logs
This commit is contained in:
parent
9e226013dc
commit
fef6b29509
@ -155,7 +155,8 @@ class ApiRoutes
|
||||
|
||||
_logRequestWarning(req, message)
|
||||
{
|
||||
this.logger.warn(`[${req.ip}] ${message}`);
|
||||
const ip = this._getIp(req);
|
||||
this.logger.warn(`[${ip}] ${message}`);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user