summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2024-11-22 09:35:55 -0600
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2024-11-22 14:37:22 -0600
commit50bf32a0ba13935273e200d52b9327821f25efc5 (patch)
tree1e014941e51ea46701b7cae3495763ddf36b677b /control/controlhttp/controlhttpserver/controlhttpserver.go
parent8e5cfbe4ab11713e383b3ff0d978f116320de2a3 (diff)
downloadtailscale-50bf32a0ba13935273e200d52b9327821f25efc5.tar.xz
tailscale-50bf32a0ba13935273e200d52b9327821f25efc5.zip
cmd/tailscaled: flush DNS if FlushDNSOnSessionUnlock is true upon receiving a session change notification
In this PR, we move the syspolicy.FlushDNSOnSessionUnlock check from service startup to when a session change notification is received. This ensures that the most recent policy setting value is used if it has changed since the service started. We also plan to handle session change notifications for unrelated reasons and need to decouple notification subscriptions from DNS anyway. Updates #12687 Updates tailscale/corp#18342 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions