From b20ec7f0eb0378de4762d151ae5e5ad604e99fd3 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Wed, 21 Feb 2024 11:32:51 +0800 Subject: [PATCH] chore: change default value of strict route --- src-tauri/src/config/clash.rs | 2 +- src/components/setting/mods/tun-viewer.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/config/clash.rs b/src-tauri/src/config/clash.rs index 9748ee50..b7591b83 100644 --- a/src-tauri/src/config/clash.rs +++ b/src-tauri/src/config/clash.rs @@ -35,7 +35,7 @@ impl IClashTemp { tun.insert("stack".into(), "gVisor".into()); tun.insert("device".into(), "Meta".into()); tun.insert("auto-route".into(), true.into()); - tun.insert("strict-route".into(), true.into()); + tun.insert("strict-route".into(), false.into()); tun.insert("auto-detect-interface".into(), true.into()); tun.insert("dns-hijack".into(), vec!["any:53", "tcp://any:53"].into()); tun.insert("mtu".into(), 9000.into()); diff --git a/src/components/setting/mods/tun-viewer.tsx b/src/components/setting/mods/tun-viewer.tsx index c54dfc04..2147d107 100644 --- a/src/components/setting/mods/tun-viewer.tsx +++ b/src/components/setting/mods/tun-viewer.tsx @@ -26,7 +26,7 @@ export const TunViewer = forwardRef((props, ref) => { autoRoute: true, autoDetectInterface: true, dnsHijack: ["any:53", "tcp://any:53"], - strictRoute: true, + strictRoute: false, mtu: 9000, }); @@ -39,7 +39,7 @@ export const TunViewer = forwardRef((props, ref) => { autoRoute: clash?.tun["auto-route"] ?? true, autoDetectInterface: clash?.tun["auto-detect-interface"] ?? true, dnsHijack: clash?.tun["dns-hijack"] ?? ["any:53", "tcp://any:53"], - strictRoute: clash?.tun["strict-route"] ?? true, + strictRoute: clash?.tun["strict-route"] ?? false, mtu: clash?.tun.mtu ?? 9000, }); },