adjust build tags for tamago

Signed-off-by: Andrea Barisani <andrea@inversepath.com>
pull/9162/head
Andrea Barisani 1 year ago committed by Brad Fitzpatrick
parent 14320290c3
commit 0a74d46568

@ -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

@ -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)

@ -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.

@ -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

@ -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

@ -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

Loading…
Cancel
Save