chore: change default value of dns hijack

This commit is contained in:
MystiPanda
2024-02-21 16:40:47 +08:00
parent e77d126349
commit 558f4d93ba
2 changed files with 3 additions and 3 deletions

View File

@@ -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,
});