From 4df533fb8cca04c38cd44debb118fef569bcb7c0 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 14 Apr 2021 22:45:25 -0500 Subject: make cf-connecting-ip lowercase --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() } }) -- cgit