Skip to content

Commit

Permalink
adjust default value
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang1 authored and xishang0128 committed Nov 6, 2024
1 parent d024214 commit e8c7830
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export const defaultControledMihomoConfig: Partial<IMihomoConfig> = {
'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,
Expand Down
12 changes: 6 additions & 6 deletions src/renderer/src/pages/dns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -195,7 +195,7 @@ const DNS: React.FC = () => {
</SettingItem>
<div className="flex flex-col items-stretch">
<h3>真实 IP 回应</h3>
{renderListInputs('fakeIPFilter', '例: +.lan')}
{renderListInputs('fakeIPFilter', '例+.lan')}
</div>
<Divider className="my-2" />
</>
Expand All @@ -221,12 +221,12 @@ const DNS: React.FC = () => {

<div className="flex flex-col items-stretch">
<h3>代理节点域名解析</h3>
{renderListInputs('proxyServerNameserver', '例: tls://223.5.5.5')}
{renderListInputs('proxyServerNameserver', '例tls://223.5.5.5')}
</div>
<Divider className="my-2" />
<div className="flex flex-col items-stretch">
<h3>DNS 服务器</h3>
{renderListInputs('nameserver', '例: tls://223.5.5.5')}
{renderListInputs('nameserver', '例tls://223.5.5.5')}
</div>
<Divider className="my-2" />
<SettingItem title="覆盖DNS策略" divider>
Expand Down

0 comments on commit e8c7830

Please sign in to comment.