default enable dns

This commit is contained in:
pompurin404 2024-08-30 11:00:59 +08:00
parent d2e0db40b3
commit 716ed4ff50
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ export const defaultConfig: IAppConfig = {
appTheme: 'system',
proxyInTray: true,
maxLogDays: 7,
proxyCols: 'auto',
proxyDisplayMode: 'simple',
proxyDisplayOrder: 'default',
autoCheckUpdate: true,
@ -56,7 +57,7 @@ export const defaultControledMihomoConfig: Partial<IMihomoConfig> = {
mtu: 1500
},
dns: {
enable: false,
enable: true,
ipv6: false,
'enhanced-mode': 'fake-ip',
'fake-ip-range': '198.18.0.1/16',

View File

@ -12,7 +12,7 @@ const DNSCard: React.FC = () => {
const match = location.pathname.includes('/dns')
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig(true)
const { dns, tun } = controledMihomoConfig || {}
const { enable } = dns || {}
const { enable = true } = dns || {}
const {
attributes,
listeners,