mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10: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',
|
appTheme: 'system',
|
||||||
proxyInTray: true,
|
proxyInTray: true,
|
||||||
maxLogDays: 7,
|
maxLogDays: 7,
|
||||||
|
proxyCols: 'auto',
|
||||||
proxyDisplayMode: 'simple',
|
proxyDisplayMode: 'simple',
|
||||||
proxyDisplayOrder: 'default',
|
proxyDisplayOrder: 'default',
|
||||||
autoCheckUpdate: true,
|
autoCheckUpdate: true,
|
||||||
@ -56,7 +57,7 @@ export const defaultControledMihomoConfig: Partial<IMihomoConfig> = {
|
|||||||
mtu: 1500
|
mtu: 1500
|
||||||
},
|
},
|
||||||
dns: {
|
dns: {
|
||||||
enable: false,
|
enable: true,
|
||||||
ipv6: false,
|
ipv6: false,
|
||||||
'enhanced-mode': 'fake-ip',
|
'enhanced-mode': 'fake-ip',
|
||||||
'fake-ip-range': '198.18.0.1/16',
|
'fake-ip-range': '198.18.0.1/16',
|
||||||
|
|||||||
@ -12,7 +12,7 @@ const DNSCard: React.FC = () => {
|
|||||||
const match = location.pathname.includes('/dns')
|
const match = location.pathname.includes('/dns')
|
||||||
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig(true)
|
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig(true)
|
||||||
const { dns, tun } = controledMihomoConfig || {}
|
const { dns, tun } = controledMihomoConfig || {}
|
||||||
const { enable } = dns || {}
|
const { enable = true } = dns || {}
|
||||||
const {
|
const {
|
||||||
attributes,
|
attributes,
|
||||||
listeners,
|
listeners,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user