From 3db894b78c2ba0f366a2984254fedfa0c7e456b3 Mon Sep 17 00:00:00 2001 From: Nicolas BERNARD Date: Sat, 18 Feb 2023 00:23:17 +0100 Subject: [PATCH] client/tailscale: add tags field to Device struct Fixes #7302 Signed-off-by: Nicolas BERNARD --- client/tailscale/devices.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/client/tailscale/devices.go b/client/tailscale/devices.go index 90cd0183e..ddca5822c 100644 --- a/client/tailscale/devices.go +++ b/client/tailscale/devices.go @@ -44,17 +44,18 @@ type Device struct { Name string `json:"name"` Hostname string `json:"hostname"` - ClientVersion string `json:"clientVersion"` // Empty for external devices. - UpdateAvailable bool `json:"updateAvailable"` // Empty for external devices. - OS string `json:"os"` - Created string `json:"created"` // Empty for external devices. - LastSeen string `json:"lastSeen"` - KeyExpiryDisabled bool `json:"keyExpiryDisabled"` - Expires string `json:"expires"` - Authorized bool `json:"authorized"` - IsExternal bool `json:"isExternal"` - MachineKey string `json:"machineKey"` // Empty for external devices. - NodeKey string `json:"nodeKey"` + ClientVersion string `json:"clientVersion"` // Empty for external devices. + UpdateAvailable bool `json:"updateAvailable"` // Empty for external devices. + OS string `json:"os"` + Tags []string `json:"tags"` + Created string `json:"created"` // Empty for external devices. + LastSeen string `json:"lastSeen"` + KeyExpiryDisabled bool `json:"keyExpiryDisabled"` + Expires string `json:"expires"` + Authorized bool `json:"authorized"` + IsExternal bool `json:"isExternal"` + MachineKey string `json:"machineKey"` // Empty for external devices. + NodeKey string `json:"nodeKey"` // BlocksIncomingConnections is configured via the device's // Tailscale client preferences. This field is only reported