diff --git a/src/components/setting/mods/tun-viewer.tsx b/src/components/setting/mods/tun-viewer.tsx index 0b60b0db2..1eb164d9d 100644 --- a/src/components/setting/mods/tun-viewer.tsx +++ b/src/components/setting/mods/tun-viewer.tsx @@ -33,7 +33,7 @@ export function TunViewer({ ref }: { ref?: Ref }) { stack: "mixed", device: OS === "macos" ? "utun1024" : "Mihomo", autoRoute: true, - autoRedirect: OS === "linux", + autoRedirect: false, autoDetectInterface: true, dnsHijack: ["any:53"], strictRoute: false, @@ -44,7 +44,7 @@ export function TunViewer({ ref }: { ref?: Ref }) { open: () => { setOpen(true); const nextAutoRoute = clash?.tun["auto-route"] ?? true; - const rawAutoRedirect = clash?.tun["auto-redirect"] ?? true; + const rawAutoRedirect = clash?.tun["auto-redirect"] ?? false; const computedAutoRedirect = OS === "linux" ? (nextAutoRoute ? rawAutoRedirect : false) : false; setValues({ @@ -118,7 +118,7 @@ export function TunViewer({ ref }: { ref?: Ref }) { "auto-route": true, ...(OS === "linux" ? { - "auto-redirect": true, + "auto-redirect": false, } : {}), "auto-detect-interface": true, @@ -130,7 +130,7 @@ export function TunViewer({ ref }: { ref?: Ref }) { stack: "gvisor", device: OS === "macos" ? "utun1024" : "Mihomo", autoRoute: true, - autoRedirect: OS === "linux" ? true : false, + autoRedirect: false, autoDetectInterface: true, dnsHijack: ["any:53"], strictRoute: false,