From ed1275e29f488ef23a3e02cf9c41c3f64be6e0ff Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 27 Feb 2026 11:21:51 +0800 Subject: [PATCH] Upgrade Downloader to 4.1.1 and update API usage --- v2rayN/Directory.Packages.props | 4 ++-- v2rayN/ServiceLib/Helper/DownloaderHelper.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/v2rayN/Directory.Packages.props b/v2rayN/Directory.Packages.props index 57dedb74..14b16776 100644 --- a/v2rayN/Directory.Packages.props +++ b/v2rayN/Directory.Packages.props @@ -11,7 +11,7 @@ - + @@ -29,4 +29,4 @@ - + \ No newline at end of file diff --git a/v2rayN/ServiceLib/Helper/DownloaderHelper.cs b/v2rayN/ServiceLib/Helper/DownloaderHelper.cs index f4a7ae7f..71c3edbe 100644 --- a/v2rayN/ServiceLib/Helper/DownloaderHelper.cs +++ b/v2rayN/ServiceLib/Helper/DownloaderHelper.cs @@ -24,13 +24,13 @@ public class DownloaderHelper var downloadOpt = new DownloadConfiguration() { - Timeout = timeout * 1000, + BlockTimeout = timeout * 1000, MaxTryAgainOnFailure = 2, RequestConfiguration = { Headers = headers, UserAgent = userAgent, - Timeout = timeout * 1000, + ConnectTimeout = timeout * 1000, Proxy = webProxy } }; @@ -62,11 +62,11 @@ public class DownloaderHelper var downloadOpt = new DownloadConfiguration() { - Timeout = timeout * 1000, + BlockTimeout = timeout * 1000, MaxTryAgainOnFailure = 2, RequestConfiguration = { - Timeout= timeout * 1000, + ConnectTimeout= timeout * 1000, Proxy = webProxy } }; @@ -139,11 +139,11 @@ public class DownloaderHelper var downloadOpt = new DownloadConfiguration() { - Timeout = timeout * 1000, + BlockTimeout = timeout * 1000, MaxTryAgainOnFailure = 2, RequestConfiguration = { - Timeout= timeout * 1000, + ConnectTimeout= timeout * 1000, Proxy = webProxy } };