Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ type Device struct {
UpdateAvailable bool `json:"updateAvailable"`

// The below are only included in listings when querying `all` fields.
SSHEnabled bool `json:"sshEnabled"`
AdvertisedRoutes []string `json:"AdvertisedRoutes"`
EnabledRoutes []string `json:"enabledRoutes"`
ClientConnectivity *ClientConnectivity `json:"clientConnectivity"`
Expand Down
2 changes: 2 additions & 0 deletions devices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func TestClient_Devices_Get(t *testing.T) {
TailnetLockError: "test error",
TailnetLockKey: "tlpub:test",
UpdateAvailable: true,
SSHEnabled: false,
AdvertisedRoutes: []string{"127.0.0.1", "127.0.0.2"},
EnabledRoutes: []string{"127.0.0.1"},
ClientConnectivity: &ClientConnectivity{
Expand Down Expand Up @@ -172,6 +173,7 @@ func TestClient_Devices_List(t *testing.T) {
NodeKey: "nodekey:test",
OS: "windows",
UpdateAvailable: true,
SSHEnabled: false,
AdvertisedRoutes: []string{"127.0.0.1", "127.0.0.2"},
EnabledRoutes: []string{"127.0.0.1"},
ClientConnectivity: &ClientConnectivity{
Expand Down