12345678910111213141516171819202122232425262728293031323334353637 |
- 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<ServerInfo> ServerList;
- static ServerInfo()
- {
- ServerList = new(){
- 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 = "外网[47.122.5.112:30300]",
- Ip = "47.122.5.112",
- Port = 30300
- },
- };
- }
- }
-
- }
|