mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-01 03:42:07 +08:00
feat(dns): remember override state per profile
Save the DNS override switch and session confirmation per profile so automatic protection only disables the affected profile. Preserve the legacy switch as the initial preference and show the profile scope beside the settings gear and in the DNS editor. Refs #7993
This commit is contained in:
@@ -699,6 +699,7 @@ export const translationKeys = [
|
||||
'settings.modals.tun.messages.invalidRouteExcludeAddress',
|
||||
'settings.modals.tun.messages.routeExcludeAddressHint',
|
||||
'settings.modals.dns.dialog.title',
|
||||
'settings.modals.dns.dialog.profileScope',
|
||||
'settings.modals.dns.dialog.warning',
|
||||
'settings.modals.dns.protection.title',
|
||||
'settings.modals.dns.protection.message',
|
||||
|
||||
@@ -955,6 +955,7 @@ export interface TranslationResources {
|
||||
}
|
||||
dns: {
|
||||
dialog: {
|
||||
profileScope: string
|
||||
title: string
|
||||
warning: string
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -890,6 +890,7 @@ interface IVergeConfig {
|
||||
enable_system_proxy?: boolean
|
||||
enable_global_hotkey?: boolean
|
||||
enable_dns_settings?: boolean
|
||||
profile_dns_settings?: Record<string, { enabled: boolean }>
|
||||
proxy_auto_config?: boolean
|
||||
pac_file_content?: string
|
||||
proxy_host?: string
|
||||
|
||||
Reference in New Issue
Block a user