mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 09:13:50 +02:00
Use user set proxy for downloading updates (#898)
This commit is contained in:
@@ -81,7 +81,15 @@ namespace VRCX
|
||||
|
||||
private static string DownloadFile(string fileUrl)
|
||||
{
|
||||
HttpClient client = new HttpClient();
|
||||
HttpClientHandler handler = new HttpClientHandler();
|
||||
|
||||
if(WebApi.ProxySet)
|
||||
{
|
||||
handler.Proxy = WebApi.Proxy;
|
||||
handler.UseProxy = true;
|
||||
}
|
||||
|
||||
HttpClient client = new HttpClient(handler);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user