mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-08 16:58:35 +00:00
wip remove routes when appc is nolonger an appc
This commit is contained in:
parent
e9ae682273
commit
df1bcf5199
@ -3531,6 +3531,9 @@ func (b *LocalBackend) reconfigAppConnectorLocked(nm *netmap.NetworkMap, prefs i
|
||||
}()
|
||||
|
||||
if !prefs.AppConnector().Advertise {
|
||||
if b.appConnector != nil {
|
||||
b.appConnector.UpdateDomainsAndRoutes([]string{}, []netip.Prefix{})
|
||||
}
|
||||
b.appConnector = nil
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user