Use address of www.wxwidgets.org instead of its name in HTTP URLs

The name resolves to Cloudflare proxy which redirects all HTTP URLs to
HTTPS, which breaks the existing tests using HTTP, so prevent this from
happening by using the actual IP address instead.
This commit is contained in:
Vadim Zeitlin
2022-04-23 18:03:25 +01:00
parent 9c4fe82242
commit da05a3770f
3 changed files with 6 additions and 4 deletions

View File

@@ -436,7 +436,7 @@ static bool DoCheckConnection()
wxSocketBase::Initialize();
wxIPV4address addr;
if (!addr.Hostname(wxASCII_STR("www.wxwidgets.org")) || !addr.Service(wxASCII_STR("www")))
if (!addr.Hostname(0xadfe5c16) || !addr.Service(wxASCII_STR("www")))
{
wxSocketBase::Shutdown();
return false;