mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-29 07:09:33 +00:00
ipn/local: fix deadlock in initial suggested exit node query (#17025)
updates tailscale/corp#26369 b.mu is locked here. We need to use suggestExitNodeLocked. Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
This commit is contained in:
@@ -3141,7 +3141,7 @@ func (b *LocalBackend) WatchNotificationsAs(ctx context.Context, actor ipnauth.A
|
|||||||
ini.Health = b.HealthTracker().CurrentState()
|
ini.Health = b.HealthTracker().CurrentState()
|
||||||
}
|
}
|
||||||
if mask&ipn.NotifyInitialSuggestedExitNode != 0 {
|
if mask&ipn.NotifyInitialSuggestedExitNode != 0 {
|
||||||
if en, err := b.SuggestExitNode(); err != nil {
|
if en, err := b.suggestExitNodeLocked(); err == nil {
|
||||||
ini.SuggestedExitNode = &en.ID
|
ini.SuggestedExitNode = &en.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user