summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2025-03-14 15:17:26 -0500
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2025-03-28 10:31:45 -0500
commit272854df416793fae9b93eb0ee3695918f7ab4d9 (patch)
tree039916c1a6e2fea6aba4723ddf01f27ca4482b9b /control/controlhttp/controlhttpserver/controlhttpserver.go
parenta8c3490614d7cc269a664fd51759e9b62305ec1e (diff)
downloadtailscale-272854df416793fae9b93eb0ee3695918f7ab4d9.tar.xz
tailscale-272854df416793fae9b93eb0ee3695918f7ab4d9.zip
ipn/ipnlocal: unconfigure wgengine when switching profiles
LocalBackend transitions to ipn.NoState when switching to a different (or new) profile. When this happens, we should unconfigure wgengine to clear routes, DNS configuration, firewall rules that block all traffic except to the exit node, etc. In this PR, we update (*LocalBackend).enterStateLockedOnEntry to do just that. Fixes #15316 Updates tailscale/corp#23967 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions