Update SpeedtestHandler.cs

pull/266/head
2dust 2019-10-28 13:11:14 +08:00
parent 2779670fa2
commit ad406c3682
1 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ namespace v2rayN.Handler
var httpPort = _config.GetLocalPort("speedtest");
index = _selecteds[index];
testCounter++;
var webProxy = new WebProxy(Global.Loopback, httpPort + index);
downloadHandle2.DownloadFileAsync(_config, url, webProxy);
@ -252,7 +252,7 @@ namespace v2rayN.Handler
try
{
IPHostEntry ipHostInfo = System.Net.Dns.Resolve(url);
IPHostEntry ipHostInfo = System.Net.Dns.GetHostEntry(url);
IPAddress ipAddress = ipHostInfo.AddressList[0];
var timer = new Stopwatch();