TESTERS WANTED: RyuLDN implementation #65

Merged
Vudjun merged 16 commits from RyuLDN into master 2024-11-11 22:06:50 +00:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit ab3c84f099 - Show all commits

View File

@ -256,6 +256,11 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu.Proxy
{
_proxy.ReturnEphemeralPort(ProtocolType, (ushort)((IPEndPoint)LocalEndPoint).Port);
}
var asIPEndpoint = (IPEndPoint)localEP;
if (asIPEndpoint.Port == 0)
{
asIPEndpoint.Port = (ushort)_proxy.GetEphemeralPort(ProtocolType);
}
LocalEndPoint = (IPEndPoint)localEP;

View File

@ -50,9 +50,12 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator
public void Dispose()
{
_parent.NetworkClient.DisconnectNetwork();
if (_parent.NetworkClient != null)
{
_parent.NetworkClient.DisconnectNetwork();
_parent.NetworkClient.NetworkChange -= NetworkChanged;
_parent.NetworkClient.NetworkChange -= NetworkChanged;
}
}
private ResultCode NetworkErrorToResult(NetworkError error)