using System.Collections.Generic; namespace ET.Client { public class ServerInfo { public string ShowName; public string Ip; public int Port; public string HostStr { get { return Ip + ":" + Port; } } public static List ServerList; static ServerInfo() { ServerList = new(){ // new ServerInfo{ // ShowName = "ommcn.com", // Ip = "ommcn.com", // Port = 30300 // }, new ServerInfo{ ShowName = "外网[47.98.144.16:30300]", Ip = "47.98.144.16", Port = 30300 }, new ServerInfo{ ShowName = "本地[localhost:30300]", Ip = "127.0.0.1", Port = 30300 }, // new ServerInfo{ // ShowName = "lv[192.168.0.233:30300]", // Ip = "192.168.0.233", // Port = 30300 // }, // new ServerInfo{ // ShowName = "dong[192.168.0.102:30300]", // Ip = "192.168.0.102", // Port = 30300 // }, }; } } }