Upgrade Go 1.21, Tailscale 1.50 and add Capability version support (#1563)
This commit is contained in:
parent
01b85e5232
commit
fb4ed95ff6
16 changed files with 277 additions and 132 deletions
|
@ -146,13 +146,13 @@ func TestTailNode(t *testing.T) {
|
|||
|
||||
LastSeen: &lastSeen,
|
||||
Online: new(bool),
|
||||
KeepAlive: true,
|
||||
MachineAuthorized: true,
|
||||
|
||||
Capabilities: []string{
|
||||
Capabilities: []tailcfg.NodeCapability{
|
||||
tailcfg.CapabilityFileSharing,
|
||||
tailcfg.CapabilityAdmin,
|
||||
tailcfg.CapabilitySSH,
|
||||
tailcfg.NodeAttrDisableUPnP,
|
||||
},
|
||||
},
|
||||
wantErr: false,
|
||||
|
@ -166,9 +166,11 @@ func TestTailNode(t *testing.T) {
|
|||
t.Run(tt.name, func(t *testing.T) {
|
||||
got, err := tailNode(
|
||||
tt.node,
|
||||
0,
|
||||
tt.pol,
|
||||
tt.dnsConfig,
|
||||
tt.baseDomain,
|
||||
false,
|
||||
)
|
||||
|
||||
if (err != nil) != tt.wantErr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue