Revert "feat(dns): protect provider DNS from unconfirmed overrides (#7902)"

This reverts commit 35a2b6c75c.

Closes #7994
Closes #7993
This commit is contained in:
Tunglies
2026-09-21 15:08:33 +08:00
parent c6a4de1c6a
commit df79ed3efb
37 changed files with 37 additions and 570 deletions
+2 -4
View File
@@ -33,7 +33,6 @@ import {
Switch,
} from '@/components/base'
import { useClash } from '@/hooks/use-clash'
import { useVerge } from '@/hooks/use-verge'
import { showNotice } from '@/services/notice-service'
import { useThemeMode } from '@/services/states'
import type { MonacoEditorInstance } from '@/types/monaco'
@@ -184,8 +183,7 @@ const DEFAULT_DNS_CONFIG = {
export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
const { t } = useTranslation()
const { mutateClash } = useClash()
const { verge } = useVerge()
const { clash, mutateClash } = useClash()
const themeMode = useThemeMode()
const [open, setOpen] = useState(false)
@@ -550,7 +548,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
return
}
if (verge?.enable_dns_settings) {
if (clash?.dns?.enable) {
await invoke('apply_dns_config', { apply: true })
mutateClash()
}