mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-21 20:22:41 +09:00
The egress proxy only stored a target FQDN's addresses after a lookup that returned some, and on a netmap update only compared them with peer device names. Targets that failed to resolve, had no addresses or were Tailscale Services were never rechecked, so their rules stayed missing until a config change or Pod restart. This fixes this by storing every lookup result, rebuilt on each sync, and resolving each stored FQDN in shouldResync the same way sync does. A target that leaves the netmap now triggers a resync too, so its rules are removed straight away. serviceIPsFromNetMap returns each Service IP once, so a Service gaining or losing a host doesn't cause a resync. Fixes #21159 Fixes #21426 Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>