mirror of
https://github.com/tailscale/tailscale.git
synced 2026-07-21 13:02:08 -04:00
e.netMap is only written by SetNetworkMap, which doesn't run when a MapResponse is handled incrementally. Therefore, when a peer re auths as a delta and magicsock learns the new key, e.netMap still has the old one, so PeerForIP feeds magicsock a key that will not work and "tailscale ping" fails until the next full netmap. Add UpdateNetmapDelta to the Engine interface, dispatched from lb UpdateNetmapDelta. Only upserts and removals are applied. Fixes tailscale/corp#43394 Change-Id: Id87637d8003c7dbb61ada5297e05d58e8e2f53b3 Signed-off-by: Fernando Serboncini <fserb@tailscale.com>