chore: change default value of dns hijack

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

View File

@ -37,7 +37,7 @@ impl IClashTemp {
tun.insert("auto-route".into(), true.into()); tun.insert("auto-route".into(), true.into());
tun.insert("strict-route".into(), false.into()); tun.insert("strict-route".into(), false.into());
tun.insert("auto-detect-interface".into(), true.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()); tun.insert("mtu".into(), 9000.into());
map.insert("mixed-port".into(), 7897.into()); map.insert("mixed-port".into(), 7897.into());

View File

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