Local > Address
This commit is contained in:
parent
514cefac46
commit
3d33f51a9f
1 changed files with 4 additions and 4 deletions
|
@ -45,12 +45,12 @@ namespace Ryujinx.HLE.OsHle.Services.Nifm
|
|||
return NoInternetConnection;
|
||||
}
|
||||
|
||||
IPHostEntry Host = Dns.GetHostEntry(Dns.GetHostName());
|
||||
IPAddress Local = Host.AddressList.FirstOrDefault(A => A.AddressFamily == AddressFamily.InterNetwork);
|
||||
IPHostEntry Host = Dns.GetHostEntry(Dns.GetHostName());
|
||||
IPAddress Address = Host.AddressList.FirstOrDefault(A => A.AddressFamily == AddressFamily.InterNetwork);
|
||||
|
||||
Context.ResponseData.Write(BitConverter.ToUInt32(Local.GetAddressBytes()));
|
||||
Context.ResponseData.Write(BitConverter.ToUInt32(Address.GetAddressBytes()));
|
||||
|
||||
Context.Ns.Log.PrintInfo(LogClass.ServiceNifm, "Console's local IP is " + Local.ToString());
|
||||
Context.Ns.Log.PrintInfo(LogClass.ServiceNifm, "Console's local IP is " + Address.ToString());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue