Commit 1960b27d authored by yuz1's avatar yuz1

建议ping随机数的网站

parent cb67e02d
...@@ -11,8 +11,10 @@ namespace Lottery ...@@ -11,8 +11,10 @@ namespace Lottery
{ {
try try
{ {
Ping ping = new Ping(); Ping ping = new Ping();
PingReply reply = ping.Send("www.baidu.com"); //PingReply reply = ping.Send("www.baidu.com");
PingReply reply = ping.Send("www.random.org");
ping.Dispose(); ping.Dispose();
return reply.Status == IPStatus.Success; return reply.Status == IPStatus.Success;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment