mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-30 04:27:45 +09:00
add lock around saving ts clients
Closes #1544 Co-Authored-By: Patrick Huang <huangxiaoman@gmail.com> Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
committed by
Kristoffer Dalby
parent
4c12c02e71
commit
9ccf87c566
@@ -197,7 +197,9 @@ func (s *EmbeddedDERPServerScenario) CreateTailscaleIsolatedNodesInUser(
|
||||
)
|
||||
}
|
||||
|
||||
s.mu.Lock()
|
||||
user.Clients[tsClient.Hostname()] = tsClient
|
||||
s.mu.Unlock()
|
||||
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user