Skip to content

Commit

Permalink
control/controlhttp: don't link ts2021 server + websocket code on iOS
Browse files Browse the repository at this point in the history
We probably shouldn't link it in anywhere, but let's fix iOS for now.

Updates tailscale#13762
Updates tailscale/corp#20099

Change-Id: Idac116e9340434334c256acba3866f02bd19827c
Signed-off-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
bradfitz committed Oct 10, 2024
1 parent 52ef27a commit 367fba8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions control/controlhttp/server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause

//go:build !ios

package controlhttp

import (
Expand Down
8 changes: 5 additions & 3 deletions tstest/iosdeps/iosdeps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ func TestDeps(t *testing.T) {
GOOS: "ios",
GOARCH: "arm64",
BadDeps: map[string]string{
"testing": "do not use testing package in production code",
"text/template": "linker bloat (MethodByName)",
"html/template": "linker bloat (MethodByName)",
"testing": "do not use testing package in production code",
"text/template": "linker bloat (MethodByName)",
"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",
},
}.Check(t)
}

0 comments on commit 367fba8

Please sign in to comment.