Network/IpAddress: Fix problem with some IPv6
This commit is contained in:
parent
57264a5650
commit
408d37a27a
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue