feat(updater): allow choosing the update download channel

Add a `update_channel` verge setting. `auto` keeps the configured
endpoints with mirror fallbacks; `github` checks and downloads from
GitHub only; `github_proxy` does the same through the Core's mixed port.
The background check now goes through the same channel-aware check.

Refs: clash-verge-rev/clash-verge-rev#8706

Assisted-by: Claude:claude-opus-5.5 [gh-stack] [codegraph]
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
This commit is contained in:
❤是纱雾酱哟~
2026-11-22 16:24:08 +08:00
co-authored by Copilot
parent 9c34864777
commit 09ea1b52e2
4 changed files with 54 additions and 8 deletions
+5
View File
@@ -112,6 +112,10 @@ pub struct IVerge {
pub auto_switch_selector_group: Option<bool>,
pub auto_check_update: Option<bool>,
/// `auto`, `github` or `github_proxy`
pub update_channel: Option<String>,
pub default_latency_test: Option<String>,
pub default_latency_timeout: Option<i16>,
@@ -461,6 +465,7 @@ impl IVerge {
patch_opt_field!(self, patch, auto_close_connection);
patch_opt_field!(self, patch, auto_switch_selector_group);
patch_opt_field!(self, patch, auto_check_update);
patch_opt_field!(self, patch, update_channel);
patch_opt_field!(self, patch, default_latency_test);
patch_opt_field!(self, patch, default_latency_timeout);
patch_opt_field!(self, patch, enable_auto_delay_detection);