Update SpeedtestHandler.cs

This commit is contained in:
2dust 2019-10-28 13:11:14 +08:00
parent 2779670fa2
commit ad406c3682

View file

@ -252,7 +252,7 @@ namespace v2rayN.Handler
try try
{ {
IPHostEntry ipHostInfo = System.Net.Dns.Resolve(url); IPHostEntry ipHostInfo = System.Net.Dns.GetHostEntry(url);
IPAddress ipAddress = ipHostInfo.AddressList[0]; IPAddress ipAddress = ipHostInfo.AddressList[0];
var timer = new Stopwatch(); var timer = new Stopwatch();