some fixes

This commit is contained in:
2026-07-01 11:26:29 +02:00
parent df63969bc5
commit 355d6f4c19
6 changed files with 17 additions and 24 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ function getIpAddress(request) {
const xff = request.headers['x-forwarded-for'];
if (xff && !isLocalhost(remoteIp) && !isTrustedProxy(remoteIp)) {
consoleCmd.logSecurity(`Untrusted proxy tried to set X-Forwarded-For: ${xff} (remote: ${remoteIpRaw})`);
consoleCmd.logWarn(`Untrusted proxy tried to set X-Forwarded-For: ${xff} (remote: ${remoteIpRaw})`);
return remoteIp;
}