add todos and small changes

This commit is contained in:
Jurgis Sakalauskas
2023-07-07 16:12:29 +03:00
parent daaeda539b
commit 27f76a08f0
10 changed files with 2401 additions and 2891 deletions
+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';