cmd/tailscale: report ChromeOS.

Fixes https://github.com/tailscale/tailscale/issues/2971

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
pull/20/head
Denton Gentry 3 years ago
parent ef96ee30fd
commit 59aecdb2e5

@ -328,7 +328,11 @@ func (a *App) runBackend() error {
if first {
state.Prefs.Hostname = a.hostname()
state.Prefs.OSVersion = a.osVersion()
state.Prefs.DeviceModel = a.modelName()
deviceModel := a.modelName()
if a.isChromeOS() {
deviceModel = "ChromeOS: " + deviceModel
}
state.Prefs.DeviceModel = deviceModel
go b.backend.SetPrefs(state.Prefs)
}
a.setPrefs(state.Prefs)

Loading…
Cancel
Save