mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 19:24:34 +01:00
login 💀
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Common.Resources.Proto;
|
||||
using Common;
|
||||
using System.Net.NetworkInformation;
|
||||
|
||||
namespace PemukulPaku
|
||||
{
|
||||
@@ -12,8 +13,11 @@ namespace PemukulPaku
|
||||
{
|
||||
Msg = "Hello!"
|
||||
};
|
||||
Console.WriteLine(Global.config.Gameserver.Host);
|
||||
new Thread(HttpServer.Program.Main).Start();
|
||||
|
||||
Global.config.Gameserver.Host = NetworkInterface.GetAllNetworkInterfaces().Where(i => i.NetworkInterfaceType != NetworkInterfaceType.Loopback && i.OperationalStatus == OperationalStatus.Up).First().GetIPProperties().UnicastAddresses.Where(a => a.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First().Address.ToString();
|
||||
Console.WriteLine(Global.config.Gameserver.Host);
|
||||
|
||||
Console.ReadKey(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user