Closed barnstar closed 3 weeks ago
just noticed that in GetLastNetcheckReport - report checks if the lastNetcheckReport is nil, and if it is, gets another report. I was trying to write a test for a nil netcheck report case, and the test was failing due to this.
Maybe just check if nil netmap?
Fixes tailscale/corp#19558
A request for the suggested exit nodes that occurs too early in the VPN lifecycle would result in a null deref of the netmap and/or the netcheck report. This checks both and errors out.