Browse Source

Update SpeedtestHandler.cs

pull/266/head
2dust 5 years ago
parent
commit
ad406c3682
  1. 4
      v2rayN/v2rayN/Handler/SpeedtestHandler.cs

4
v2rayN/v2rayN/Handler/SpeedtestHandler.cs

@ -238,7 +238,7 @@ namespace v2rayN.Handler
var httpPort = _config.GetLocalPort("speedtest"); var httpPort = _config.GetLocalPort("speedtest");
index = _selecteds[index]; index = _selecteds[index];
testCounter++; testCounter++;
var webProxy = new WebProxy(Global.Loopback, httpPort + index); var webProxy = new WebProxy(Global.Loopback, httpPort + index);
downloadHandle2.DownloadFileAsync(_config, url, webProxy); downloadHandle2.DownloadFileAsync(_config, url, webProxy);
@ -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();

Loading…
Cancel
Save