Bläddra i källkod

chore: change default value of dns hijack

MystiPanda 1 år sedan
förälder
incheckning
558f4d93ba
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      src-tauri/src/config/clash.rs
  2. 2 2
      src/components/setting/mods/tun-viewer.tsx

+ 1 - 1
src-tauri/src/config/clash.rs

@@ -37,7 +37,7 @@ impl IClashTemp {
         tun.insert("auto-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("dns-hijack".into(), vec!["any:53"].into());
         tun.insert("mtu".into(), 9000.into());
 
         map.insert("mixed-port".into(), 7897.into());

+ 2 - 2
src/components/setting/mods/tun-viewer.tsx

@@ -25,7 +25,7 @@ export const TunViewer = forwardRef<DialogRef>((props, ref) => {
     device: "Mihomo",
     autoRoute: true,
     autoDetectInterface: true,
-    dnsHijack: ["any:53", "tcp://any:53"],
+    dnsHijack: ["any:53"],
     strictRoute: false,
     mtu: 9000,
   });
@@ -38,7 +38,7 @@ export const TunViewer = forwardRef<DialogRef>((props, ref) => {
         device: clash?.tun.device ?? "Mihomo",
         autoRoute: clash?.tun["auto-route"] ?? true,
         autoDetectInterface: clash?.tun["auto-detect-interface"] ?? true,
-        dnsHijack: clash?.tun["dns-hijack"] ?? ["any:53", "tcp://any:53"],
+        dnsHijack: clash?.tun["dns-hijack"] ?? ["any:53"],
         strictRoute: clash?.tun["strict-route"] ?? false,
         mtu: clash?.tun.mtu ?? 9000,
       });