Skip to content

Commit

Permalink
fix tun switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Aug 10, 2024
1 parent 938802d commit 79c35c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/components/sider/tun-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const TunSwitcher: React.FC = () => {
if (enable) {
await patchControledMihomoConfig({ tun: { enable }, dns: { enable: true } })
} else {
await patchControledMihomoConfig({ tun: { enable }, dns: { enable: true } })
await patchMihomoConfig({ tun: { enable } })
await patchControledMihomoConfig({ tun: { enable } })
}
await patchMihomoConfig({ tun: { enable } })
}

return (
Expand Down

0 comments on commit 79c35c6

Please sign in to comment.