From c043281b9f82e76761647f7a8fead15b6703927e Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Wed, 6 Nov 2024 20:49:45 +0800 Subject: [PATCH] adjust default value --- src/main/utils/template.ts | 4 ++-- src/renderer/src/pages/dns.tsx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/utils/template.ts b/src/main/utils/template.ts index 26f2db1..5fd7dae 100644 --- a/src/main/utils/template.ts +++ b/src/main/utils/template.ts @@ -73,8 +73,8 @@ 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://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'], - 'proxy-server-nameserver': ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'] + 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'] }, sniffer: { enable: true, diff --git a/src/renderer/src/pages/dns.tsx b/src/renderer/src/pages/dns.tsx index 6bc7865..5a298bd 100644 --- a/src/renderer/src/pages/dns.tsx +++ b/src/renderer/src/pages/dns.tsx @@ -28,10 +28,10 @@ const DNS: React.FC = () => { 'use-hosts': useHosts = false, 'use-system-hosts': useSystemHosts = false, 'respect-rules': respectRules = false, - nameserver = ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'], + nameserver = ['https://120.53.53.53/dns-query', 'https://223.5.5.5/dns-query'], 'proxy-server-nameserver': proxyServerNameserver = [ - 'https://doh.pub/dns-query', - 'https://dns.alidns.com/dns-query' + 'https://120.53.53.53/dns-query', + 'https://223.5.5.5/dns-query' ] } = dns || {} const [changed, setChanged] = useState(false) @@ -195,7 +195,7 @@ const DNS: React.FC = () => {

真实 IP 回应

- {renderListInputs('fakeIPFilter', '例: +.lan')} + {renderListInputs('fakeIPFilter', '例:+.lan')}
@@ -221,12 +221,12 @@ const DNS: React.FC = () => {

代理节点域名解析

- {renderListInputs('proxyServerNameserver', '例: tls://223.5.5.5')} + {renderListInputs('proxyServerNameserver', '例:tls://223.5.5.5')}

DNS 服务器

- {renderListInputs('nameserver', '例: tls://223.5.5.5')} + {renderListInputs('nameserver', '例:tls://223.5.5.5')}