A simple application to send CSP violation reports to an email address
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
180 B

  1. package main
  2. import "time"
  3. // rateLimitLoop resets the rate limit every hour
  4. func rateLimitLoop() {
  5. for {
  6. time.Sleep(1 * time.Hour)
  7. RateLimitMap = make(map[string]int)
  8. }
  9. }