Update IGeneralService.cs
This commit is contained in:
parent
122f7fae5e
commit
e3b133d804
1 changed files with 0 additions and 1 deletions
|
@ -48,7 +48,6 @@ namespace Ryujinx.HLE.OsHle.Services.Nifm
|
|||
IPHostEntry HostEntry = Dns.GetHostEntry(HostName);
|
||||
IPAddress[] Address = HostEntry.AddressList;
|
||||
var IP = Address.Where(x => x.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).FirstOrDefault();
|
||||
Console.WriteLine(IP.ToString());
|
||||
string BEHexStr = string.Concat(IP.ToString().Split('.').Select(x => int.Parse(x).ToString("X2")));
|
||||
uint BENum = Convert.ToUInt32(BEHexStr, 16);
|
||||
byte[] Bytes = BitConverter.GetBytes(BENum);
|
||||
|
|
Loading…
Add table
Reference in a new issue