adjust default value

This commit is contained in:
xishang0128 2024-11-06 20:49:45 +08:00
parent d02421414f
commit c043281b9f
2 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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 = () => {
</SettingItem>
<div className="flex flex-col items-stretch">
<h3> IP </h3>
{renderListInputs('fakeIPFilter', '例: +.lan')}
{renderListInputs('fakeIPFilter', '例+.lan')}
</div>
<Divider className="my-2" />
</>
@ -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>