diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-14 22:45:25 -0500 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-14 22:45:25 -0500 |
commit | 4df533fb8cca04c38cd44debb118fef569bcb7c0 (patch) | |
tree | 281fc96ef7e4e8d46774faa7a935ecceb8e7e7f9 /src/index.ts | |
parent | 1858d515752988b2376d7917efd66dbfd0047ae6 (diff) | |
download | skyblock-api-4df533fb8cca04c38cd44debb118fef569bcb7c0.tar.gz skyblock-api-4df533fb8cca04c38cd44debb118fef569bcb7c0.tar.bz2 skyblock-api-4df533fb8cca04c38cd44debb118fef569bcb7c0.zip |
make cf-connecting-ip lowercase
Diffstat (limited to 'src/index.ts')
-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() } }) |