mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-23 06:42:44 +00:00
sfdsnres: fix endianess issue for port serialisation
This commit is contained in:
parent
730d2f4b9b
commit
131b43170e
@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Sfdnsres.Types
|
|||||||
{
|
{
|
||||||
Length = (byte)Unsafe.SizeOf<Array4<byte>>();
|
Length = (byte)Unsafe.SizeOf<Array4<byte>>();
|
||||||
Family = (byte)AddressFamily.InterNetwork;
|
Family = (byte)AddressFamily.InterNetwork;
|
||||||
Port = port;
|
Port = IPAddress.HostToNetworkOrder(port);
|
||||||
Address = new Array4<byte>();
|
Address = new Array4<byte>();
|
||||||
|
|
||||||
address.TryWriteBytes(Address.AsSpan(), out _);
|
address.TryWriteBytes(Address.AsSpan(), out _);
|
||||||
|
Loading…
Reference in New Issue
Block a user