wgengine/magicsock: fix rare shutdown race in test.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-08-27 14:13:49 -07:00
committed by Dave Anderson
parent 97693f2e42
commit fe2f89deab
2 changed files with 11 additions and 1 deletions

View File

@@ -3208,7 +3208,9 @@ func ippDebugString(ua netaddr.IPPort) string {
}
// discoEndpoint is a wireguard/conn.Endpoint that picks the best
// available path to communicate with a peer.
// available path to communicate with a peer, based on network
// conditions and what the peer supports. In particular, despite the
// name, an endpoint can support DERP only.
type discoEndpoint struct {
// atomically accessed; declared first for alignment reasons
lastRecv mono.Time