adjust build tags for tamago

Signed-off-by: Andrea Barisani <andrea@inversepath.com>
This commit is contained in:
Andrea Barisani 2023-08-30 14:23:38 +02:00 committed by Brad Fitzpatrick
parent 14320290c3
commit 0a74d46568
6 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !windows && !wasm && !plan9
//go:build !windows && !wasm && !plan9 && !tamago
package filch

View File

@ -396,7 +396,7 @@ func (s *State) HasPAC() bool { return s != nil && s.PAC != "" }
// AnyInterfaceUp reports whether any interface seems like it has Internet access.
func (s *State) AnyInterfaceUp() bool {
if runtime.GOOS == "js" {
if runtime.GOOS == "js" || runtime.GOOS == "tamago" {
return true
}
return s != nil && (s.HaveV4 || s.HaveV6)

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !wasm && !plan9
//go:build !wasm && !plan9 && !tamago
// Package tun creates a tuntap device, working around OS-specific
// quirks if necessary.

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !windows && !wasm && !plan9
//go:build !windows && !wasm && !plan9 && !tamago
package paths

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build windows || wasm || plan9
//go:build windows || wasm || plan9 || tamago
package logger

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !windows && !wasm && !plan9
//go:build !windows && !wasm && !plan9 && !tamago
package logger