Fix parsing issue with IPv6 format: propogating scopeId from IPv6AddressImpl to IPAddress.

This commit is contained in:
Paruyr Gevorgyan 2014-10-17 00:59:55 +02:00
parent a6fcc477bd
commit 49e856aa89

View File

@ -97,7 +97,7 @@ IPAddress::IPAddress(const std::string& addr)
IPv6AddressImpl addr6(IPv6AddressImpl::parse(addr));
if (addr6 != IPv6AddressImpl())
{
newIPv6(addr6.addr());
newIPv6(addr6.addr(), addr6.scope());
return;
}
#endif