Skip to content

Commit f92ce2d

Browse files
committed
tailscale/client: add connectedToControl field on device response
Updates tailscale/corp#31905 Signed-off-by: mcoulombe <max@tailscale.com>
1 parent 0c48e46 commit f92ce2d

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "module=$(go env GOMODCACHE)" | tee -a $GITHUB_OUTPUT
2121
2222
- name: Set up cache
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
with:
2525
path: |
2626
${{ steps.cache.outputs.build }}

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)