mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
fixed GH #1570: IPv6AddressImpl::toString() returns wrong output for IPv6 address "::"
This commit is contained in:
@@ -85,6 +85,10 @@ void IPAddressTest::testStringConv6()
|
||||
IPAddress ia6(32, IPAddress::IPv6);
|
||||
assert (ia6.family() == IPAddress::IPv6);
|
||||
assert (ia6.toString() == "ffff:ffff::");
|
||||
|
||||
IPAddress ia7("::");
|
||||
assert (ia7.family() == IPAddress::IPv6);
|
||||
assert (ia7.toString() == "::");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user