mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
adjust build tags for tamago
Signed-off-by: Andrea Barisani <andrea@inversepath.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
14320290c3
commit
0a74d46568
@@ -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)
|
||||
|
Reference in New Issue
Block a user