wip remove routes when appc is nolonger an appc

This commit is contained in:
Kevin Liang 2024-04-05 16:29:27 +00:00
parent e9ae682273
commit df1bcf5199

View File

@ -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
}