Reduced limit

This commit is contained in:
Manu Mtz-Almeida 2015-05-13 03:21:10 +02:00
parent 313d05ed68
commit d05b31ed77
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ var ips = stats.New()
func ratelimit(c *gin.Context) {
ip := c.ClientIP()
value := ips.Add(ip, 1)
if value > 1000 {
if value > 400 {
c.AbortWithStatus(401)
}
}