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