mirror of
https://github.com/cloudmaker97/Discord-Captcha-Verification.git
synced 2025-12-06 01:48:34 +00:00
Changed filter module attribute
This commit is contained in:
parent
064f2859f8
commit
c3872352dd
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ event.on('discord:ready', () => {
|
||||||
let clientIp = function(req) {
|
let clientIp = function(req) {
|
||||||
return req.headers['x-forwarded-for'] || req.socket.remoteAddress
|
return req.headers['x-forwarded-for'] || req.socket.remoteAddress
|
||||||
}
|
}
|
||||||
expressApp.use(IpFilter(blacklist, {clientIp: clientIp}));
|
expressApp.use(IpFilter(blacklist, {detectIp: clientIp}));
|
||||||
expressApp.use(express.json())
|
expressApp.use(express.json())
|
||||||
|
|
||||||
expressApp.use((err, req, res, _next) => {
|
expressApp.use((err, req, res, _next) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue