Skip to content
Snippets Groups Projects
Commit 32e0ca7d authored by Thomas Lynch's avatar Thomas Lynch :sunglasses:
Browse files

remove debug, update comment

parent 24a8f5ae
No related branches found
No related tags found
No related merge requests found
......@@ -711,7 +711,6 @@ module.exports = {
hotThreads: async () => {
const { hotThreadsLimit, hotThreadsThreshold } = config.get;
console.log(hotThreadsLimit, hotThreadsThreshold)
if (hotThreadsLimit === 0){ //0 limit = no limit in mongodb
return [];
}
......
......@@ -23,12 +23,11 @@ module.exports = async (req, res, next) => {
return acc;
}, {});
for (let ip in ipPosts) {
//should we at some point filter these to not bother banning pruned ips?
const banType = ip.endsWith('.IP') ? 0 :
ip.endsWith('.BP') ? 1 :
2;
const thisIpPosts = ipPosts[ip];
/* should we at some point filter these to not bother banning pruned ips,
and/or not range banning bypasses (since it does nothing)? */
let banRange = 0;
let banIp = {
cloak: thisIpPosts[0].ip.cloak,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment