Skip to content

Commit

Permalink
Ignore IP
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Apr 7, 2018
1 parent 3b197ff commit 91cf7dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/middlewares/countRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ function countRequest () {
winston.error(err)
})
hosts[host] = hosts[host] === null ? 0 : parseInt(hosts[host]) + 1
if (hosts['115.159.75.126:8000']) {
delete hosts['115.159.75.126:8000']
}
cache.set('requests:hosts', hosts)
.catch(err => {
winston.error(err)
Expand Down

0 comments on commit 91cf7dd

Please sign in to comment.