mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-15 07:00:32 +00:00
Use proxy settings on request send
This commit is contained in:
parent
5ae0b84466
commit
f2d8c11c15
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue