mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-22 04:32:40 +09:00
Give the client a generation counter, bump it in reset, and stamp each assignment with it as it is queued. insertTransitConnMapping rejects assignments from an older generation; because that check happens under c.mu it is exclusive with reset, which is what actually closes the window. handleAddressAssignment also checks before sending, so an assignment invalidated while it was still queued doesn't reach a connector at all. Fixes https://github.com/tailscale/corp/issues/51125 Change-Id: Ib524324b6e8a196fdcb5b4cd307854f61c7a0f04 Signed-off-by: Mazdak Nasab <mazdak.nasab@gmail.com>