Use proxy settings on request send

This commit is contained in:
doteq 2023-05-08 15:31:06 +02:00
parent 5ae0b84466
commit f2d8c11c15

View file

@ -682,6 +682,14 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
{ {
IPEndPoint endPoint = context.Memory.Read<BsdSockAddr>(bufferPosition).ToIPEndPoint(); IPEndPoint endPoint = context.Memory.Read<BsdSockAddr>(bufferPosition).ToIPEndPoint();
if (context.Device.Configuration.EnableHttpProxy)
{
endPoint = new IPEndPoint(
IPAddress.Parse(context.Device.Configuration.HttpProxyIpAddress),
context.Device.Configuration.HttpProxyPort
);
}
errno = socket.Connect(endPoint); errno = socket.Connect(endPoint);
} }