ServerInfo.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Collections.Generic;
  2. namespace ET.Client
  3. {
  4. public class ServerInfo
  5. {
  6. public string ShowName;
  7. public string Ip;
  8. public int Port;
  9. public string HostStr { get { return Ip + ":" + Port; } }
  10. public static List<ServerInfo> ServerList;
  11. static ServerInfo()
  12. {
  13. ServerList = new(){
  14. new ServerInfo{
  15. ShowName = "ommcn.com",
  16. Ip = "ommcn.com",
  17. Port = 30300
  18. },
  19. new ServerInfo{
  20. ShowName = "git 1",
  21. Ip = "47.98.144.16",
  22. Port = 30300
  23. },
  24. new ServerInfo{
  25. ShowName = "本地[localhost:30300]",
  26. Ip = "127.0.0.1",
  27. Port = 30300
  28. },
  29. new ServerInfo{
  30. ShowName = "lv[192.168.0.233:30300]",
  31. Ip = "192.168.0.233",
  32. Port = 30300
  33. },
  34. new ServerInfo{
  35. ShowName = "dong[192.168.0.102:30300]",
  36. Ip = "192.168.0.102",
  37. Port = 30300
  38. },
  39. };
  40. }
  41. }
  42. }