mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-12 05:37:32 +00:00
ipn,tailconfig: clean up unreleased and removed app connector service
This was never released, and is replaced by HostInfo.AppConnector. Updates tailscale/corp#15437 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:

committed by
James Tucker

parent
0b6636295e
commit
c54d680682
@@ -3192,12 +3192,6 @@ func (b *LocalBackend) peerAPIServicesLocked() (ret []tailcfg.Service) {
|
||||
Port: 1, // version
|
||||
})
|
||||
}
|
||||
if b.appConnector != nil {
|
||||
ret = append(ret, tailcfg.Service{
|
||||
Proto: tailcfg.AppConnector,
|
||||
Port: 1, // version
|
||||
})
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
@@ -3278,13 +3272,7 @@ func (b *LocalBackend) reconfigAppConnectorLocked(nm *netmap.NetworkMap, prefs i
|
||||
}()
|
||||
|
||||
if !prefs.AppConnector().Advertise {
|
||||
var old *appc.AppConnector
|
||||
old, b.appConnector = b.appConnector, nil
|
||||
if old != nil {
|
||||
// Ensure that the app connector service will not be advertised now
|
||||
// that b.appConnector is no longer set.
|
||||
go b.doSetHostinfoFilterServices()
|
||||
}
|
||||
b.appConnector = nil
|
||||
return
|
||||
}
|
||||
|
||||
@@ -3318,10 +3306,6 @@ func (b *LocalBackend) reconfigAppConnectorLocked(nm *netmap.NetworkMap, prefs i
|
||||
slices.Sort(domains)
|
||||
slices.Compact(domains)
|
||||
b.appConnector.UpdateDomains(domains)
|
||||
|
||||
// Ensure that the app connector service will be advertised now that
|
||||
// b.appConnector is set.
|
||||
go b.doSetHostinfoFilterServices()
|
||||
}
|
||||
|
||||
// authReconfig pushes a new configuration into wgengine, if engine
|
||||
|
Reference in New Issue
Block a user