mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-18 04:39:06 +02:00
Background initial resolves used context.Background(), so they outlived a server Stop() and kept running (up to dnsTimeout) against a cache that was already being discarded. Thread the server-lifetime ctx from UpdateFromServerDomains through kickoffResolve into AddDomain so Stop() cancels in-flight resolves. The ctx is not per-sync, so a fast-returning sync still won't cancel them.