Network/IpAddress: Fix problem with some IPv6

This commit is contained in:
Jérôme Leclercq 2019-04-24 13:46:02 +02:00
parent 57264a5650
commit 408d37a27a
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ namespace Nz
IpAddress::IPv6 ipv6;
for (unsigned int i = 0; i < 8; ++i)
ipv6[i] = rawIpV6[i * 2] << 8 | rawIpV6[i * 2 + 1];
ipv6[i] = Nz::UInt16(rawIpV6[i * 2]) << 8 | rawIpV6[i * 2 + 1];
return IpAddress(ipv6, ntohs(addressv6->sin6_port));
}