mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 11:36:26 -08:00
A config file reload sets prefs through setPrefsLocked, but netstack's set of active Tailscale Services was only updated from onEditPrefsLocked and setNetMapLocked. After the operator changed AdvertiseServices in a ProxyGroup config Secret, netstack kept the old set until the next netmap. The node still served a withdrawn Service locally instead of sending that traffic to another host, and did not serve a newly added one. Move the update into setPrefsLocked so every path that changes prefs applies it, and add a netstack test that exercises ReloadConfig. Fixes #22498 Signed-off-by: Brendan Creane <[email protected]>