Update midware.js
Browse files- 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
|
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 |
|