From 18e39262b4b87a17880dbeb2419ced287ce6492b Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Wed, 23 Oct 2024 15:40:46 -0600 Subject: [PATCH] Added constant --- direct.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct.go b/direct.go index c79d8a4..957f981 100644 --- a/direct.go +++ b/direct.go @@ -110,7 +110,8 @@ func (d *direct) findWorkingMasquerades() { func (d *direct) vetGroup(start, batchSize int, successful *atomic.Uint32) { var wg sync.WaitGroup - for j := start; j < start+batchSize && j < len(d.masquerades); j++ { + masqueradeSize := len(d.masquerades) + for j := start; j < start+batchSize && j < masqueradeSize; j++ { wg.Add(1) go func(m MasqueradeInterface) { defer wg.Done()