Skip to content

Commit 79c35c6

Browse files
author
pompurin404
committed
fix tun switcher
1 parent 938802d commit 79c35c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/src/components/sider/tun-switcher.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ const TunSwitcher: React.FC = () => {
3434
if (enable) {
3535
await patchControledMihomoConfig({ tun: { enable }, dns: { enable: true } })
3636
} else {
37-
await patchControledMihomoConfig({ tun: { enable }, dns: { enable: true } })
38-
await patchMihomoConfig({ tun: { enable } })
37+
await patchControledMihomoConfig({ tun: { enable } })
3938
}
39+
await patchMihomoConfig({ tun: { enable } })
4040
}
4141

4242
return (

0 commit comments

Comments
 (0)