Skip to content

Commit

Permalink
Merge branch 'node18-upgrade' into sqlite-overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Apr 24, 2024
2 parents 0bd521e + 1cd6bc6 commit c99591b
Show file tree
Hide file tree
Showing 3 changed files with 2,007 additions and 415 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const router: Router = Router();

function getLogDataFromReq(req: Request): LogData {
let logData = new LogData();
logData.ip = req.get('cf-connecting-ip') || req.get('x-forwarded-for') || req.ip;
logData.ip = req.get('cf-connecting-ip') || req.get('x-forwarded-for') || req.ip || 'unknown';
logData.cfCountry = req.get('cf-ipcountry');
logData.userAgent = req.get('user-agent');
if (req.get('x-requested-with')) {
Expand Down
Loading

0 comments on commit c99591b

Please sign in to comment.