From 3e2947ebdb2454bed22c2540d28daa219b6bd8b8 Mon Sep 17 00:00:00 2001 From: snltty <1069410172@qq.com> Date: Mon, 11 Nov 2024 09:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=9E=E6=8E=A5=E4=B8=AD?= =?UTF-8?q?=E7=BB=A7=E8=8A=82=E7=82=B9=E7=9A=84=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 2 +- linker/linker.csproj | 3 ++- linker/plugins/updater/UpdaterClientTransfer.cs | 2 +- linker/plugins/updater/config/config.cs | 1 + version.txt | 5 +++-- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7ca9ab07..ada65bc9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -37,7 +37,7 @@ jobs: release_name: v1.5.3.${{ steps.date.outputs.today }} draft: false prerelease: false - body: "1. 增加连接中继节点的超时时间\r\n2. 增加网卡端口转发备注\r\n3. 已有多个公开中继服务器上线" + body: "1. 增加连接中继节点的超时时间\r\n2. 增加网卡端口转发备注\r\n3. 已有多个公开中继服务器上线\r\n4. 自定义更新检测频率" - name: upload-win-x86-oss id: upload-win-x86-oss uses: tvrcgo/oss-action@v0.1.1 diff --git a/linker/linker.csproj b/linker/linker.csproj index a52f8f6b..4134fee9 100644 --- a/linker/linker.csproj +++ b/linker/linker.csproj @@ -23,7 +23,8 @@ snltty 1. 增加连接中继节点的超时时间 2. 增加网卡端口转发备注 -3. 已有多个公开中继服务器上线 +3. 已有多个公开中继服务器上线 +4. 自定义更新检测频率 snltty https://github.com/snltty/linker https://github.com/snltty/linker diff --git a/linker/plugins/updater/UpdaterClientTransfer.cs b/linker/plugins/updater/UpdaterClientTransfer.cs index f68f23b4..b1ebf3f1 100644 --- a/linker/plugins/updater/UpdaterClientTransfer.cs +++ b/linker/plugins/updater/UpdaterClientTransfer.cs @@ -129,7 +129,7 @@ namespace linker.plugins.updater { await updaterHelper.GetUpdateInfo(updateInfo); return true; - }, () => 30000); + }, () => fileConfig.Data.Common.UpdateIntervalSeconds); } } diff --git a/linker/plugins/updater/config/config.cs b/linker/plugins/updater/config/config.cs index 0ff56781..71b230cb 100644 --- a/linker/plugins/updater/config/config.cs +++ b/linker/plugins/updater/config/config.cs @@ -7,6 +7,7 @@ namespace linker.config public sealed partial class ConfigCommonInfo { public string UpdateUrl { get; set; } = "https://static.qbcode.cn/downloads/linker"; + public int UpdateIntervalSeconds { get; set; } = 60; } } diff --git a/version.txt b/version.txt index bd934a25..28e5c49a 100644 --- a/version.txt +++ b/version.txt @@ -1,5 +1,6 @@ v1.5.3 -2024-11-10 17:31:52 +2024-11-11 09:51:14 1. 增加连接中继节点的超时时间 2. 增加网卡端口转发备注 -3. 已有多个公开中继服务器上线 \ No newline at end of file +3. 已有多个公开中继服务器上线 +4. 自定义更新检测频率 \ No newline at end of file