fixed pocoproject.org IP address

This commit is contained in:
Günter Obiltschnig 2019-06-22 14:48:25 +02:00
parent 5fc4cd3ff9
commit 303173b76f

View File

@ -68,7 +68,7 @@ void SocketAddressTest::testSocketAddress()
}
SocketAddress sa4("pocoproject.org", 80);
assert (sa4.host().toString() == "162.209.7.4");
assert (sa4.host().toString() == "104.130.199.50");
assert (sa4.port() == 80);
try
@ -119,16 +119,16 @@ void SocketAddressTest::testSocketAddress()
}
SocketAddress sa10("www6.pocoproject.org", 80);
assert (sa10.host().toString() == "162.209.7.4" || sa10.host().toString() == "[2001:4801:7819:74:be76:4eff:fe10:6b73]");
assert (sa10.host().toString() == "104.130.199.50" || sa10.host().toString() == "2001:4801:7828:101:be76:4eff:fe10:1455");
SocketAddress sa11(SocketAddress::IPv4, "www6.pocoproject.org", 80);
assert (sa11.host().toString() == "162.209.7.4");
assert (sa11.host().toString() == "104.130.199.50");
#ifdef POCO_HAVE_IPv6
try
{
SocketAddress sa12(SocketAddress::IPv6, "www6.pocoproject.org", 80);
assert (sa12.host().toString() == "2001:4801:7819:74:be76:4eff:fe10:6b73");
assert (sa12.host().toString() == "2001:4801:7828:101:be76:4eff:fe10:1455");
}
catch (AddressFamilyMismatchException&)
{