all: apply go fix

Updates #cleanup

Signed-off-by: Adriano Sela Aviles <adriano@tailscale.com>
This commit is contained in:
Adriano Sela Aviles
2026-07-10 17:39:16 -07:00
committed by Adriano Sela Aviles
parent a5102d3fcb
commit d69bf2685a
26 changed files with 44 additions and 95 deletions
+3 -4
View File
@@ -10,6 +10,7 @@ import (
"errors"
"fmt"
"net"
"slices"
"strings"
"testing"
"time"
@@ -71,10 +72,8 @@ func TestListenSSH(t *testing.T) {
return err
}
for _, peer := range st.Peer {
for _, ip := range peer.TailscaleIPs {
if ip == clientIP {
return nil
}
if slices.Contains(peer.TailscaleIPs, clientIP) {
return nil
}
}
return errors.New("clientNode not yet in srvNode's netmap")