1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-21 16:22:02 +00:00

sfdsnres: fix endianess issue for port serialisation

This commit is contained in:
Mary 2022-09-01 19:54:29 +02:00 committed by Mary-nyan
parent 730d2f4b9b
commit 131b43170e

View file

@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Sfdnsres.Types
{
Length = (byte)Unsafe.SizeOf<Array4<byte>>();
Family = (byte)AddressFamily.InterNetwork;
Port = port;
Port = IPAddress.HostToNetworkOrder(port);
Address = new Array4<byte>();
address.TryWriteBytes(Address.AsSpan(), out _);