diff --git a/package.json b/package.json index 9b0d1d7..2a1cd1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mihomo-party", - "version": "1.5.12", + "version": "1.5.13", "description": "Mihomo Party", "main": "./out/main/index.js", "author": "mihomo-party-org", diff --git a/src/main/utils/template.ts b/src/main/utils/template.ts index 6bc3513..f14aaf3 100644 --- a/src/main/utils/template.ts +++ b/src/main/utils/template.ts @@ -33,7 +33,8 @@ export const defaultConfig: IAppConfig = { 'substore' ], siderWidth: 250, - sysProxy: { enable: false, mode: 'manual' } + sysProxy: { enable: false, mode: 'manual' }, + updateChannel: "release" } export const defaultControledMihomoConfig: Partial = { @@ -74,8 +75,9 @@ export const defaultControledMihomoConfig: Partial = { 'fake-ip-filter': ['*', '+.lan', '+.local', 'time.*.com', 'ntp.*.com', '+.market.xiaomi.com'], 'use-hosts': false, 'use-system-hosts': false, - nameserver: ['https://120.53.53.53/dns-query', 'https://223.5.5.5/dns-query'], - 'proxy-server-nameserver': ['https://120.53.53.53/dns-query', 'https://223.5.5.5/dns-query'], + 'default-nameserver': ['tls://223.5.5.5'], + nameserver: ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'], + 'proxy-server-nameserver': ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'], 'direct-nameserver': [] }, sniffer: { diff --git a/src/renderer/src/components/resources/proxy-provider.tsx b/src/renderer/src/components/resources/proxy-provider.tsx index 5dd52c9..9a97c4b 100644 --- a/src/renderer/src/components/resources/proxy-provider.tsx +++ b/src/renderer/src/components/resources/proxy-provider.tsx @@ -21,7 +21,8 @@ const ProxyProvider: React.FC = () => { show: false, path: '', type: '', - title: '' + title: '', + privderType: '' }) useEffect(() => { if (showDetails.title) { @@ -104,7 +105,8 @@ const ProxyProvider: React.FC = () => { path={showDetails.path} type={showDetails.type} title={showDetails.title} - onClose={() => setShowDetails({ show: false, path: '', type: '', title: '' })} + privderType={showDetails.privderType} + onClose={() => setShowDetails({ show: false, path: '', type: '', title: '', privderType: '' })} /> )} @@ -136,28 +138,27 @@ const ProxyProvider: React.FC = () => { {/* */} - {provider.vehicleType !== 'Inline' && ( - - )} +