Local > Address
This commit is contained in:
parent
514cefac46
commit
3d33f51a9f
1 changed files with 4 additions and 4 deletions
|
@ -46,11 +46,11 @@ namespace Ryujinx.HLE.OsHle.Services.Nifm
|
|||
}
|
||||
|
||||
IPHostEntry Host = Dns.GetHostEntry(Dns.GetHostName());
|
||||
IPAddress Local = Host.AddressList.FirstOrDefault(A => A.AddressFamily == AddressFamily.InterNetwork);
|
||||
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
Add a link
Reference in a new issue