randydev commited on
Commit
06932c2
·
verified ·
1 Parent(s): 95123f3

Update midware.js

Browse files
Files changed (1) hide show
  1. midware.js +1 -1
midware.js CHANGED
@@ -25,7 +25,7 @@ class CheckMilWare {
25
  console.log(`Extracted Real IP: ${realIP}`);
26
 
27
  const isBlocked = await this.dbClient.CheckIsBlocked(realIP);
28
- if (isBlocked && isBlocked.blocked === true) {
29
  return res.status(403).send("Access denied: IP is blocked");
30
  }
31
 
 
25
  console.log(`Extracted Real IP: ${realIP}`);
26
 
27
  const isBlocked = await this.dbClient.CheckIsBlocked(realIP);
28
+ if (isBlocked && isBlocked.blocked) {
29
  return res.status(403).send("Access denied: IP is blocked");
30
  }
31