aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-04-14 22:45:25 -0500
committermat <27899617+mat-1@users.noreply.github.com>2021-04-14 22:45:25 -0500
commit4df533fb8cca04c38cd44debb118fef569bcb7c0 (patch)
tree281fc96ef7e4e8d46774faa7a935ecceb8e7e7f9 /build
parent1858d515752988b2376d7917efd66dbfd0047ae6 (diff)
downloadskyblock-api-4df533fb8cca04c38cd44debb118fef569bcb7c0.tar.gz
skyblock-api-4df533fb8cca04c38cd44debb118fef569bcb7c0.tar.bz2
skyblock-api-4df533fb8cca04c38cd44debb118fef569bcb7c0.zip
make cf-connecting-ip lowercase
Diffstat (limited to 'build')
-rw-r--r--build/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/index.js b/build/index.js
index dad9312..4dbe69a 100644
--- a/build/index.js
+++ b/build/index.js
@@ -19,7 +19,7 @@ const limiter = express_rate_limit_1.default({
},
keyGenerator: (req) => {
var _a;
- return ((_a = req.headers['Cf-Connecting-Ip']) !== null && _a !== void 0 ? _a : req.ip).toString();
+ return ((_a = req.headers['cf-connecting-ip']) !== null && _a !== void 0 ? _a : req.ip).toString();
}
});
app.use(limiter);