diff options
-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 b249720..298dee3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,7 @@ const limiter = rateLimit({ max: 200, skip: (req: express.Request) => { console.log(req.headers) - return req.headers['x-key'] === process.env.key + return req.headers.key === process.env.key }, keyGenerator: (req: express.Request) => { return (req.headers['cf-connecting-ip'] ?? req.ip).toString() |