diff options
author | Mary <mary@mary.zone> | 2022-09-01 19:54:29 +0200 |
---|---|---|
committer | Mary-nyan <thog@protonmail.com> | 2022-09-01 21:31:20 +0200 |
commit | 131b43170e28d598f0f9991937544f3f1aab79a3 (patch) | |
tree | a6bf957659593372eb4452b57ce5b3c620e70a20 | |
parent | 730d2f4b9b86229a0a3cf89dfaf5b71bd4460afa (diff) |
sfdsnres: fix endianess issue for port serialisation1.1.245
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/Types/AddrInfo4.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/Types/AddrInfo4.cs b/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/Types/AddrInfo4.cs index 6e4d883b..19b570e4 100644 --- a/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/Types/AddrInfo4.cs +++ b/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/Types/AddrInfo4.cs @@ -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 _); |