mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-11-06 18:58:01 +00:00
add todos and small changes
This commit is contained in:
1 parent
daaeda539b
commit
27f76a08f0
10 files changed
+2401
-2891
No files matched your search
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user