From edc513115983e88c23910ea7c53dd8813c04510d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Mon, 15 Jan 2024 19:24:08 +0100 Subject: [PATCH] use flag value for max --- tlsserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlsserver.go b/tlsserver.go index 64c5516..0c75d37 100644 --- a/tlsserver.go +++ b/tlsserver.go @@ -146,7 +146,7 @@ var badActors = map[string]int{} func isBadActor(host string) bool { mux.RLock() defer mux.RUnlock() - if n, ok := badActors[host]; ok && n >= 10 { + if n, ok := badActors[host]; ok && n >= *max { return true } return false