ipn/ipnlocal: send ClientVersion to Apple frontends (#9887)

Apple frontends will now understand this Notify field and handle it.

Updates #755

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
Andrew Lytvynov
2023-10-19 12:50:21 -07:00
committed by GitHub
parent b4247fabec
commit 25b6974219

View File

@@ -2344,16 +2344,7 @@ func (b *LocalBackend) onClientVersion(v *tailcfg.ClientVersion) {
b.mu.Lock()
b.lastClientVersion = v
b.mu.Unlock()
switch runtime.GOOS {
case "darwin", "ios":
// These auto-update well enough, and we haven't converted the
// ClientVersion types to Swift yet, so don't send them in ipn.Notify
// messages.
default:
// But everything else is a Go client and can deal with this field, even
// if they ignore it.
b.send(ipn.Notify{ClientVersion: v})
}
b.send(ipn.Notify{ClientVersion: v})
}
// For testing lazy machine key generation.