-
Notifications
You must be signed in to change notification settings - Fork 2
/
ServerList.cs
40 lines (34 loc) · 1.06 KB
/
ServerList.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.Linq;
using System.Net;
namespace KekboomKawaii
{
public static class ServerList
{
private static string[] serverDNSList = {
"ht1.pwrdoverseagame.com",
"ht2.pwrdoverseagame.com",
//"ht3.pwrdoverseagame.com",
//"ht4.pwrdoverseagame.com",
//"ht5.pwrdoverseagame.com",
//"ht6.pwrdoverseagame.com",
//"ht7.pwrdoverseagame.com",
/*"htk1.pwrdoverseagame.com",
"htk2.pwrdoverseagame.com",
"htk3.pwrdoverseagame.com",
"htk4.pwrdoverseagame.com", 전투 udp 서버 사용 X*/
};
private static string[] serverIPList;
static ServerList()
{
serverIPList = serverDNSList.Select(dns => Dns2IP(dns)).ToArray();
}
public static bool IsSourceIsServer(string source)
{
return serverIPList.Contains(source);
}
private static string Dns2IP(string dns)
{
return Dns.GetHostAddresses(dns)[0].ToString();
}
}
}