diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index 274df36..6976882 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,7 @@ const limiter = rateLimit({ return req.headers.key === process.env.key }, keyGenerator: (req: express.Request) => { - return (req.headers['Cf-Connecting-Ip'] ?? req.ip).toString() + return (req.headers['cf-connecting-ip'] ?? req.ip).toString() } }) |