Check connection to www.wxwidgets.org and not www.google.com

Our tests use the former and not the latter, so check connection to the
site we're actually interested in.
This commit is contained in:
Vadim Zeitlin
2022-04-23 16:16:01 +01:00
parent 668563f2b0
commit 860dd39fab

View File

@@ -436,7 +436,7 @@ extern bool IsNetworkAvailable()
wxSocketBase::Initialize(); wxSocketBase::Initialize();
wxIPV4address addr; wxIPV4address addr;
if (!addr.Hostname(wxASCII_STR("www.google.com")) || !addr.Service(wxASCII_STR("www"))) if (!addr.Hostname(wxASCII_STR("www.wxwidgets.org")) || !addr.Service(wxASCII_STR("www")))
{ {
wxSocketBase::Shutdown(); wxSocketBase::Shutdown();
return false; return false;