From 136367d468dd2d65d3c3865a987a50886105612b Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Thu, 20 Feb 2025 17:20:36 -0500 Subject: [PATCH] Standardize verified TTL --- main.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index bd1e145..c9e6d9d 100644 --- a/main.go +++ b/main.go @@ -125,13 +125,12 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h } bc := CaptchaProtect{ - next: next, - name: name, - config: config, - rateCache: lru.New(expiration, 1*time.Minute), - botCache: lru.New(expiration, 1*time.Minute), - // allow good IPs to pass through for ten days - verifiedCache: lru.New(240*time.Hour, 1*time.Hour), + next: next, + name: name, + config: config, + rateCache: lru.New(expiration, 1*time.Minute), + botCache: lru.New(expiration, 1*time.Hour), + verifiedCache: lru.New(expiration, 1*time.Hour), exemptIps: ips, }