diff --git a/net/interfaces/interfaces.go b/net/interfaces/interfaces.go index c8323318b..1de76a15f 100644 --- a/net/interfaces/interfaces.go +++ b/net/interfaces/interfaces.go @@ -414,6 +414,9 @@ 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" { + return true + } return s != nil && (s.HaveV4 || s.HaveV6) }