mirror of https://github.com/2dust/v2rayN
up webproxy
parent
a922d3c46d
commit
9224ea9819
|
@ -1298,7 +1298,7 @@ namespace v2rayN.Forms
|
|||
}
|
||||
else
|
||||
{
|
||||
v2rayUpdateHandle.DownloadFileAsync(config, url);
|
||||
v2rayUpdateHandle.DownloadFileAsync(config, url, false);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -232,7 +232,7 @@ namespace v2rayN.Handler
|
|||
|
||||
testCounter++;
|
||||
|
||||
v2rayUpdateHandle2.DownloadFileAsync(_config, url);
|
||||
v2rayUpdateHandle2.DownloadFileAsync(_config, url,true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace v2rayN.Handler
|
|||
}
|
||||
|
||||
|
||||
public void DownloadFileAsync(Config config, string url)
|
||||
public void DownloadFileAsync(Config config, string url, bool blProxy)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -106,7 +106,10 @@ namespace v2rayN.Handler
|
|||
progressPercentage = -1;
|
||||
|
||||
WebClientEx ws = new WebClientEx();
|
||||
if (blProxy)
|
||||
{
|
||||
ws.Proxy = new WebProxy(Global.Loopback, Global.sysAgentPort);
|
||||
}
|
||||
|
||||
ws.DownloadFileCompleted += ws_DownloadFileCompleted;
|
||||
ws.DownloadProgressChanged += ws_DownloadProgressChanged;
|
||||
|
|
Loading…
Reference in New Issue