summaryrefslogtreecommitdiffhomepage
path: root/control
diff options
context:
space:
mode:
authorAnton Tolchanov <anton@tailscale.com>2023-11-13 17:18:55 +0000
committerAnton Tolchanov <anton@tailscale.com>2023-11-13 17:18:55 +0000
commitc712b4917e4440537944ac601a0cd0dbe2275762 (patch)
tree2ad1493e76e4ec67986db4258f2011b74a7963e4 /control
parent86c8ab7502a38b4de05308355fe0c847e4e78167 (diff)
downloadtailscale-knyar/restartmap.tar.xz
tailscale-knyar/restartmap.zip
ipn/ipnlocal: restart the map poll when posture checking is enabledknyar/restartmap
Signed-off-by: Anton Tolchanov <anton@tailscale.com>
Diffstat (limited to 'control')
-rw-r--r--control/controlclient/auto.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/control/controlclient/auto.go b/control/controlclient/auto.go
index 1dc903376..377a8fa43 100644
--- a/control/controlclient/auto.go
+++ b/control/controlclient/auto.go
@@ -290,9 +290,9 @@ func (c *Auto) cancelMapCtxLocked() {
}
}
-// restartMap cancels the existing mapPoll and liteUpdates, and then starts a
+// RestartMap cancels the existing mapPoll and liteUpdates, and then starts a
// new one.
-func (c *Auto) restartMap() {
+func (c *Auto) RestartMap() {
c.mu.Lock()
c.cancelMapCtxLocked()
synced := c.inMapPoll
@@ -397,7 +397,7 @@ func (c *Auto) authRoutine() {
c.mu.Unlock()
c.sendStatus("authRoutine-success", nil, "", nil)
- c.restartMap()
+ c.RestartMap()
bo.BackOff(ctx, nil)
}
}