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

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