From 59aecdb2e5fbfcace39a11a31ad52f6072f50a6f Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Thu, 30 Sep 2021 18:11:12 -0700 Subject: [PATCH] cmd/tailscale: report ChromeOS. Fixes https://github.com/tailscale/tailscale/issues/2971 Signed-off-by: Denton Gentry --- cmd/tailscale/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/tailscale/main.go b/cmd/tailscale/main.go index 01d3174..8dae25b 100644 --- a/cmd/tailscale/main.go +++ b/cmd/tailscale/main.go @@ -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)