login 💀

This commit is contained in:
rafi1212122
2023-05-25 15:28:43 +07:00
parent 106ed39ebd
commit f294d9faa4
11 changed files with 675 additions and 10 deletions

View File

@@ -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);
}
}