use flag value for max
This commit is contained in:
parent
5ceede6da1
commit
edc5131159
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user