From 76c63d0dd26a777f6b3be5e684a15c7a05b84f6d Mon Sep 17 00:00:00 2001 From: Diego Romar Date: Fri, 19 Dec 2025 12:46:49 -0300 Subject: [PATCH] Track PopulateNetbirdConfig goroutine with e.shutdownWg --- client/internal/engine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/internal/engine.go b/client/internal/engine.go index 4934a0184..8b383ae06 100644 --- a/client/internal/engine.go +++ b/client/internal/engine.go @@ -463,7 +463,9 @@ func (e *Engine) Start(netbirdConfig *mgmProto.NetbirdConfig, mgmtURL *url.URL) log.Info("created dns server") // Populate DNS cache with NetbirdConfig and management URL for early resolution + e.shutdownWg.Add(1) go func() { + defer e.shutdownWg.Done() backoff := time.Second var lastErr error const populateAttempts = 5