mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-06 04:36:15 +02:00
ipn/ipnlocal: send ClientVersion in initial WatchNotifications message
If ClientVersion was populated before WatchNotifications started, it would never get delivered to the caller. Explicitly include it. Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
parent
1df2d14c8f
commit
9827e6965a
@ -2117,8 +2117,12 @@ func (b *LocalBackend) WatchNotifications(ctx context.Context, mask ipn.NotifyWa
|
||||
ini.BrowseToURL = ptr.To(b.authURLSticky)
|
||||
}
|
||||
}
|
||||
prefs := b.sanitizedPrefsLocked()
|
||||
if mask&ipn.NotifyInitialPrefs != 0 {
|
||||
ini.Prefs = ptr.To(b.sanitizedPrefsLocked())
|
||||
ini.Prefs = ptr.To(prefs)
|
||||
}
|
||||
if prefs.Valid() && prefs.AutoUpdate().Check {
|
||||
ini.ClientVersion = b.lastClientVersion
|
||||
}
|
||||
if mask&ipn.NotifyInitialNetMap != 0 {
|
||||
ini.NetMap = b.netMap
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user