mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59:54 +08:00
feat: remove hot ip in debug info
This commit is contained in:
@@ -4,11 +4,6 @@ module.exports = async (ctx, next) => {
|
||||
}
|
||||
ctx.debug.paths[ctx.request.path]++;
|
||||
|
||||
const ip = ctx.ips[0] || ctx.ip;
|
||||
if (!ctx.debug.ips[ip]) {
|
||||
ctx.debug.ips[ip] = 0;
|
||||
}
|
||||
ctx.debug.ips[ip]++;
|
||||
ctx.debug.request++;
|
||||
|
||||
await next();
|
||||
|
||||
Reference in New Issue
Block a user