mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
default enable dns
This commit is contained in:
parent
d2e0db40b3
commit
716ed4ff50
@ -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',
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user