From f2d8c11c1536e699bca6b4dec94e55da212eabb5 Mon Sep 17 00:00:00 2001 From: doteq Date: Mon, 8 May 2023 15:31:06 +0200 Subject: [PATCH] Use proxy settings on request send --- src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs index b63864c90..11bef95bc 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs @@ -682,6 +682,14 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd { IPEndPoint endPoint = context.Memory.Read(bufferPosition).ToIPEndPoint(); + if (context.Device.Configuration.EnableHttpProxy) + { + endPoint = new IPEndPoint( + IPAddress.Parse(context.Device.Configuration.HttpProxyIpAddress), + context.Device.Configuration.HttpProxyPort + ); + } + errno = socket.Connect(endPoint); }