mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 18:51:18 -08: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 <[email protected]>
This commit is contained in:
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user