safesocket: don't depend on go-ps on iOS

There's never a tailscaled on iOS. And we can't run child processes to
look for it anyway.

Updates tailscale/corp#20099

Change-Id: Ieb3776f4bb440c4f1c442fdd169bacbe17f23ddb
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2024-10-09 17:55:42 -07:00 committed by Brad Fitzpatrick
parent 367fba8520
commit fb420be176
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build linux || windows || darwin || freebsd
//go:build linux || windows || (darwin && !ios) || freebsd
package safesocket

View File

@ -19,6 +19,7 @@ func TestDeps(t *testing.T) {
"html/template": "linker bloat (MethodByName)",
"tailscale.com/net/wsconn": "https://github.com/tailscale/tailscale/issues/13762",
"github.com/coder/websocket": "https://github.com/tailscale/tailscale/issues/13762",
"github.com/mitchellh/go-ps": "https://github.com/tailscale/tailscale/pull/13759",
},
}.Check(t)
}