mirror of
https://github.com/tailscale/tailscale.git
synced 2025-09-21 05:31:36 +02: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:
parent
2b9d055101
commit
a2f2ac6ba1
@ -3141,7 +3141,7 @@ func (b *LocalBackend) WatchNotificationsAs(ctx context.Context, actor ipnauth.A
|
||||
ini.Health = b.HealthTracker().CurrentState()
|
||||
}
|
||||
if mask&ipn.NotifyInitialSuggestedExitNode != 0 {
|
||||
if en, err := b.SuggestExitNode(); err != nil {
|
||||
if en, err := b.suggestExitNodeLocked(); err == nil {
|
||||
ini.SuggestedExitNode = &en.ID
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user