fix: linux tun timeout (#4993)

* fix: linux tun timeout

* docs: UPDATELOG.md
This commit is contained in:
Sline
2025-10-09 15:09:17 +08:00
committed by GitHub
parent 44280b23e4
commit 5db4677ff8
3 changed files with 24 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ impl IClashTemp {
let mut tun = Mapping::new();
let mut cors_map = Mapping::new();
tun.insert("enable".into(), false.into());
#[cfg(target_os = "linux")]
tun.insert("stack".into(), "mixed".into());
#[cfg(not(target_os = "linux"))]
tun.insert("stack".into(), "gvisor".into());
tun.insert("auto-route".into(), true.into());
tun.insert("strict-route".into(), false.into());