Skip to content

Commit 34a7c2f

Browse files
authored
tailscale/client: add connectedToControl field on device response (#135)
Updates tailscale/corp#31905 Signed-off-by: mcoulombe <[email protected]>
1 parent 779df03 commit 34a7c2f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tailscale/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ type Device struct {
721721
Expires Time `json:"expires"`
722722
Hostname string `json:"hostname"`
723723
IsExternal bool `json:"isExternal"`
724+
ConnectedToControl bool `json:"connectedToControl"`
724725
LastSeen Time `json:"lastSeen"`
725726
MachineKey string `json:"machineKey"`
726727
NodeKey string `json:"nodeKey"`

tailscale/client_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ func TestClient_Devices(t *testing.T) {
422422
Expires: tailscale.Time{time.Date(2022, 8, 9, 11, 50, 23, 0, time.UTC)},
423423
Hostname: "test",
424424
IsExternal: false,
425+
ConnectedToControl: false,
425426
LastSeen: tailscale.Time{time.Date(2022, 3, 9, 20, 3, 42, 0, time.UTC)},
426427
MachineKey: "mkey:test",
427428
NodeKey: "nodekey:test",

0 commit comments

Comments
 (0)