mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
test: log
This commit is contained in:
committed by
Andrew Rodrigues
parent
354e0a822d
commit
d15e27107e
@@ -17,7 +17,7 @@ module.exports = function (middleware) {
|
||||
}
|
||||
|
||||
const count = (cache.peek(`${req.ip}:uploaded_file_count`) || 0) + req.files.files.length;
|
||||
|
||||
console.log('req.ip', req.ip, count, req.files.files.length, meta.config.uploadRateLimitThreshold);
|
||||
if (count > meta.config.uploadRateLimitThreshold) {
|
||||
return next(new Error(['[[error:upload-ratelimit-reached]]']));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user