From 131b43170e28d598f0f9991937544f3f1aab79a3 Mon Sep 17 00:00:00 2001 From: Mary Date: Thu, 1 Sep 2022 19:54:29 +0200 Subject: [PATCH] sfdsnres: fix endianess issue for port serialisation --- Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/Types/AddrInfo4.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>(); Family = (byte)AddressFamily.InterNetwork; - Port = port; + Port = IPAddress.HostToNetworkOrder(port); Address = new Array4(); address.TryWriteBytes(Address.AsSpan(), out _);