add todos and small changes

This commit is contained in:
Jurgis Sakalauskas committed 2023-07-07 16:12:29 +03:00
1 parent daaeda539b
commit 27f76a08f0
10 files changed
+2401 -2891

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ export class RequestLogMiddleware implements NestMiddleware {
strIP = strRemoteAddress.substring(strRemoteAddress.lastIndexOf(':') + 1);
}
//todo - x-forwarded-for
if (!strIP || strIP === '1') {
if (req.hostname === 'localhost') {
strIP = '127.0.0.1';