feat(proxy): follow url-test/fallback picks with the first select group

In rule mode, picking a node in a url-test or fallback group also points the first select group listing it at that group. Toggle in Misc settings, on by default.
This commit is contained in:
wonfen
2026-11-19 01:57:08 +08:00
parent 2e786bf2c9
commit 54119cb187
23 changed files with 169 additions and 3 deletions
+4
View File
@@ -109,6 +109,8 @@ pub struct IVerge {
pub auto_close_connection: Option<bool>,
pub auto_switch_selector_group: Option<bool>,
pub auto_check_update: Option<bool>,
pub default_latency_test: Option<String>,
@@ -368,6 +370,7 @@ impl IVerge {
use_default_bypass: Some(true),
proxy_guard_duration: Some(30),
auto_close_connection: Some(true),
auto_switch_selector_group: Some(true),
auto_check_update: Some(true),
enable_builtin_enhanced: Some(true),
auto_log_clean: Some(2), // 1: 1天, 2: 7天, 3: 30天, 4: 90天
@@ -456,6 +459,7 @@ impl IVerge {
patch_opt_field!(self, patch, enable_global_hotkey);
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, default_latency_test);
patch_opt_field!(self, patch, default_latency_timeout);