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 -3
View File
@@ -323,11 +323,11 @@ func readMacosSameUserProof() (port int, token string, err error) {
subStr := []byte(".tailscale.ipn.macos/sameuserproof-")
for bs.Scan() {
line := bs.Bytes()
i := bytes.Index(line, subStr)
if i == -1 {
_, after, ok := bytes.Cut(line, subStr)
if !ok {
continue
}
f := strings.SplitN(string(line[i+len(subStr):]), "-", 2)
f := strings.SplitN(string(after), "-", 2)
if len(f) != 2 {
continue
}