diff --git a/Changelog.md b/Changelog.md index 88fd1819a..d5c47f9d2 100644 --- a/Changelog.md +++ b/Changelog.md @@ -62,6 +62,7 @@ - 新增连接页面按网络协议(TCP/UDP)筛选连接 - 新增规则模式下在规则流量未经过的代理组选节点时,自动将首个包含该组的 `select` 代理组切换到该组,可在「杂项设置」关闭 +- 新增「杂项设置」中的「更新通道」,可选择直连 GitHub 或经代理从 GitHub 下载更新 diff --git a/src/components/setting/mods/misc-viewer.tsx b/src/components/setting/mods/misc-viewer.tsx index c7365c621..3eb44e19b 100644 --- a/src/components/setting/mods/misc-viewer.tsx +++ b/src/components/setting/mods/misc-viewer.tsx @@ -24,6 +24,7 @@ const buildInitialValues = (verge?: IVergeConfig | null) => ({ autoCloseConnection: verge?.auto_close_connection ?? true, autoSwitchSelectorGroup: verge?.auto_switch_selector_group ?? true, autoCheckUpdate: verge?.auto_check_update ?? true, + updateChannel: verge?.update_channel || 'auto', enableBuiltinEnhanced: verge?.enable_builtin_enhanced ?? true, proxyLayoutColumn: verge?.proxy_layout_column || 6, enableAutoDelayDetection: verge?.enable_auto_delay_detection ?? false, @@ -58,6 +59,7 @@ export const MiscViewer = forwardRef((props, ref) => { auto_close_connection: values.autoCloseConnection, auto_switch_selector_group: values.autoSwitchSelectorGroup, auto_check_update: values.autoCheckUpdate, + update_channel: values.updateChannel, enable_builtin_enhanced: values.enableBuiltinEnhanced, proxy_layout_column: values.proxyLayoutColumn, enable_auto_delay_detection: values.enableAutoDelayDetection, @@ -242,6 +244,36 @@ export const MiscViewer = forwardRef((props, ref) => { /> + + + + +