already tested IPs should be logged on debug level
This commit is contained in:
parent
ab81bd17e8
commit
86e1bc034f
1 changed files with 2 additions and 2 deletions
|
@ -81,12 +81,12 @@ app.get("/auth", async (req, res) => {
|
|||
switch (status) {
|
||||
case IPLookupResult.Allowed: {
|
||||
res.statusCode = 200;
|
||||
logger.info(`${ip} is whitelisted.`);
|
||||
logger.debug(`${ip} is whitelisted.`);
|
||||
return "PASS";
|
||||
}
|
||||
case IPLookupResult.Blocked: {
|
||||
res.statusCode = 403;
|
||||
logger.info(`${ip} is blocked.`);
|
||||
logger.debug(`${ip} is blocked.`);
|
||||
return "FAIL";
|
||||
}
|
||||
case IPLookupResult.Unlisted: {
|
||||
|
|
Loading…
Reference in a new issue