mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-07 09:48:04 +01:00
fix test for updated IP addresses
This commit is contained in:
parent
5284be25ae
commit
7c177b6f89
@ -68,7 +68,7 @@ void SocketAddressTest::testSocketAddress()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SocketAddress sa4("pocoproject.org", 80);
|
SocketAddress sa4("pocoproject.org", 80);
|
||||||
assertTrue (sa4.host().toString() == "104.130.199.50");
|
assertTrue (sa4.host().toString() == "54.93.62.90");
|
||||||
assertTrue (sa4.port() == 80);
|
assertTrue (sa4.port() == 80);
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -119,10 +119,10 @@ void SocketAddressTest::testSocketAddress()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SocketAddress sa10("www6.pocoproject.org", 80);
|
SocketAddress sa10("www6.pocoproject.org", 80);
|
||||||
assertTrue (sa10.host().toString() == "104.130.199.50" || sa10.host().toString() == "[2001:4801:7828:101:be76:4eff:fe10:1455]");
|
assertTrue (sa10.host().toString() == "54.93.62.90" || sa10.host().toString() == "[2001:4801:7828:101:be76:4eff:fe10:1455]");
|
||||||
|
|
||||||
SocketAddress sa11(SocketAddress::IPv4, "www6.pocoproject.org", 80);
|
SocketAddress sa11(SocketAddress::IPv4, "www6.pocoproject.org", 80);
|
||||||
assertTrue (sa11.host().toString() == "104.130.199.50");
|
assertTrue (sa11.host().toString() == "54.93.62.90");
|
||||||
|
|
||||||
#ifdef POCO_HAVE_IPv6
|
#ifdef POCO_HAVE_IPv6
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user