Add TODOs for only sending patch updates
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
88a9f4b44c
commit
50fb7ad6ce
|
@ -60,16 +60,39 @@ func (h *Headscale) generateMapResponse(
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
|
||||||
resp := tailcfg.MapResponse{
|
resp := tailcfg.MapResponse{
|
||||||
KeepAlive: false,
|
KeepAlive: false,
|
||||||
Node: node,
|
Node: node,
|
||||||
Peers: nodePeers,
|
|
||||||
DNSConfig: dnsConfig,
|
// TODO: Only send if updated
|
||||||
Domain: h.cfg.BaseDomain,
|
DERPMap: h.DERPMap,
|
||||||
|
|
||||||
|
// TODO: Only send if updated
|
||||||
|
Peers: nodePeers,
|
||||||
|
|
||||||
|
// TODO(kradalby): Implement:
|
||||||
|
// https://github.com/tailscale/tailscale/blob/main/tailcfg/tailcfg.go#L1351-L1374
|
||||||
|
// PeersChanged
|
||||||
|
// PeersRemoved
|
||||||
|
// PeersChangedPatch
|
||||||
|
// PeerSeenChange
|
||||||
|
// OnlineChange
|
||||||
|
|
||||||
|
// TODO: Only send if updated
|
||||||
|
DNSConfig: dnsConfig,
|
||||||
|
|
||||||
|
// TODO: Only send if updated
|
||||||
|
Domain: h.cfg.BaseDomain,
|
||||||
|
|
||||||
|
// TODO: Only send if updated
|
||||||
PacketFilter: h.aclRules,
|
PacketFilter: h.aclRules,
|
||||||
SSHPolicy: h.sshPolicy,
|
|
||||||
DERPMap: h.DERPMap,
|
|
||||||
UserProfiles: profiles,
|
UserProfiles: profiles,
|
||||||
ControlTime: &now,
|
|
||||||
|
// TODO: Only send if updated
|
||||||
|
SSHPolicy: h.sshPolicy,
|
||||||
|
|
||||||
|
ControlTime: &now,
|
||||||
|
|
||||||
Debug: &tailcfg.Debug{
|
Debug: &tailcfg.Debug{
|
||||||
DisableLogTail: !h.cfg.LogTail.Enabled,
|
DisableLogTail: !h.cfg.LogTail.Enabled,
|
||||||
RandomizeClientPort: h.cfg.RandomizeClientPort,
|
RandomizeClientPort: h.cfg.RandomizeClientPort,
|
||||||
|
|
Loading…
Reference in New Issue