Skip to content

Commit

Permalink
add IP to rate limit logging
Browse files Browse the repository at this point in the history
I was wrong about it not being okay in letsencrypt#1300
  • Loading branch information
jmhodges committed Jan 5, 2016
1 parent a4b3003 commit 4fe05d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ra/registration-authority.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func (ra *RegistrationAuthorityImpl) checkRegistrationLimit(ip net.IP) error {
}
if count >= limit.GetThreshold(ip.String(), noRegistrationID) {
ra.regByIPStats.Inc("Exceeded", 1)
ra.log.Info(fmt.Sprintf("Rate limit exceeded, RegistrationsByIP, IP: %s", ip))
return core.RateLimitedError("Too many registrations from this IP")
}
ra.regByIPStats.Inc("Pass", 1)
Expand Down

0 comments on commit 4fe05d0

Please sign in to comment.