Showing
1 changed file
with
1 additions
and
0 deletions
@@ -48,6 +48,7 @@ module.exports = (limiter, policy) => { | @@ -48,6 +48,7 @@ module.exports = (limiter, policy) => { | ||
48 | if (!results[key]) { | 48 | if (!results[key]) { |
49 | operation.push(cache.setAsync(cacheKey, 1, +key)); | 49 | operation.push(cache.setAsync(cacheKey, 1, +key)); |
50 | } else if (+results[key] > +val) { | 50 | } else if (+results[key] > +val) { |
51 | + logger.warn(`${config.app}:limiter:${limiter.remoteIp}`); | ||
51 | 52 | ||
52 | // ip限制1小时 | 53 | // ip限制1小时 |
53 | operation.push(cache.setAsync(`${config.app}:limiter:${limiter.remoteIp}`, 1, limiterIpTime)); | 54 | operation.push(cache.setAsync(`${config.app}:limiter:${limiter.remoteIp}`, 1, limiterIpTime)); |
-
Please register or login to post a comment