mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
some fixes
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user