Proxy forwarded IP in logs

This commit is contained in:
Mark van Renswoude 2021-08-18 15:56:54 +02:00
parent 9e226013dc
commit fef6b29509

View File

@ -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}`);
}