mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-08 01:05:35 +00:00
wip remove routes when appc is nolonger an appc
This commit is contained in:
parent
10a8995e6f
commit
0904e19e13
@ -3574,6 +3574,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