6cfcb3cae4
Identified in review in #7821 endpoint.discoKey and endpoint.discoShort are often accessed without first taking endpoint.mu. The arrangement with endpoint.mu is inconvenient for a good number of those call-sites, so it is instead replaced with an atomic pointer to carry both pieces of disco info. This will also help with #7821 that wants to add explicit checks/guards to disable disco behaviors when disco keys are missing which is necessarily implicitly mostly covered by this change. Updates #7821 Signed-off-by: James Tucker <james@tailscale.com> |
||
---|---|---|
.. | ||
debughttp.go | ||
debugknobs.go | ||
debugknobs_stubs.go | ||
discopingpurpose_string.go | ||
magicsock.go | ||
magicsock_default.go | ||
magicsock_linux.go | ||
magicsock_test.go | ||
magicsock_unix_test.go | ||
pathfinder.go |