fix(tun): restart core when tun mode is toggled to true on linux (#6800)

* fix(tun): restart core when tun mode is toggled to true on linux

* fix(changelog): add note for Linux TUN not taking effect immediately

---------

Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
This commit is contained in:
sgt57
2026-04-15 14:08:17 +08:00
committed by GitHub
co-authored by Tunglies
parent e2a634b662
commit 8c7b5abcb5
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -135,6 +135,7 @@ fn determine_update_flags(patch: &IVerge) -> UpdateFlags {
#[cfg(target_os = "linux")]
{
restart_core_needed |= tproxy_enabled.is_some() || tproxy_port.is_some();
restart_core_needed |= tun_mode == Some(true);
}
let mut update_flags = UpdateFlags::empty();