mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-06 00:32:13 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user