fix: default value for tun

This commit is contained in:
MystiPanda committed 2024-04-20 17:42:36 +08:00
1 parent b2a210ec0d
commit deccff623a
1 file changed
+3 -3
+3 -3
View File
@@ -50,12 +50,12 @@ export const TunViewer = forwardRef<DialogRef>((props, ref) => {
try {
let tun = {
stack: values.stack,
device: values.device,
device: values.device === "" ? "Meta" : values.device,
"auto-route": values.autoRoute,
"auto-detect-interface": values.autoDetectInterface,
"dns-hijack": values.dnsHijack,
"dns-hijack": values.dnsHijack[0] === "" ? [] : values.dnsHijack,
"strict-route": values.strictRoute,
mtu: values.mtu,
mtu: values.mtu ?? 1500,
};
await patchClash({ tun });
await mutateClash(