mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
log req.ip
This commit is contained in:
parent
0874f6ff21
commit
91076014cd
1 changed files with 1 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ export const createApp = (): {
|
|||
},
|
||||
keyGenerator: (req) => {
|
||||
console.log('x-forwarded-for header', req.header('x-forwarded-for'))
|
||||
console.log('ip', req.ip)
|
||||
return getTokenByRequest(req) || req.ip
|
||||
},
|
||||
// skip preflight requests and test requests
|
||||
|
|
|
|||
Loading…
Reference in a new issue