We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fec3bc + 4fdb526 commit fa8e53dCopy full SHA for fa8e53d
CHANGES_NEXT_RELEASE
@@ -1 +1,2 @@
1
-- Upgrade NodeJS version from 16-slim to 16-bullseye-slim in Dockerfile
+- Fix: fill from log field with real IP
2
+- Upgrade NodeJS version from 16-slim to 16-bullseye-slim in Dockerfile
lib/utils/logging.js
@@ -44,6 +44,7 @@ function requestLogger(componentName) {
44
contextSubsrv = req.headers[constants.SUBSERVICE_HEADER];
45
}
46
let contextFrom;
47
+ contextFrom = req.ip || req.connection.remoteAddress;
48
// x-forwarded-for/forwarded overwrites x-real-ip
49
if (req.headers[constants.X_REAL_IP_HEADER]) {
50
contextFrom = req.headers[constants.X_REAL_IP_HEADER];
0 commit comments