mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 20:51:45 +00:00
adjust build tags for tamago
Signed-off-by: Andrea Barisani <andrea@inversepath.com>
This commit is contained in:
parent
14320290c3
commit
0a74d46568
@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
//go:build !windows && !wasm && !plan9
|
//go:build !windows && !wasm && !plan9 && !tamago
|
||||||
|
|
||||||
package filch
|
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.
|
// AnyInterfaceUp reports whether any interface seems like it has Internet access.
|
||||||
func (s *State) AnyInterfaceUp() bool {
|
func (s *State) AnyInterfaceUp() bool {
|
||||||
if runtime.GOOS == "js" {
|
if runtime.GOOS == "js" || runtime.GOOS == "tamago" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return s != nil && (s.HaveV4 || s.HaveV6)
|
return s != nil && (s.HaveV4 || s.HaveV6)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// 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
|
// Package tun creates a tuntap device, working around OS-specific
|
||||||
// quirks if necessary.
|
// quirks if necessary.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
//go:build !windows && !wasm && !plan9
|
//go:build !windows && !wasm && !plan9 && !tamago
|
||||||
|
|
||||||
package paths
|
package paths
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
//go:build windows || wasm || plan9
|
//go:build windows || wasm || plan9 || tamago
|
||||||
|
|
||||||
package logger
|
package logger
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
//go:build !windows && !wasm && !plan9
|
//go:build !windows && !wasm && !plan9 && !tamago
|
||||||
|
|
||||||
package logger
|
package logger
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user