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'], 'fake-ip-filter': ['*', '+.lan', '+.local', 'time.*.com', 'ntp.*.com', '+.market.xiaomi.com'],
'use-hosts': false, 'use-hosts': false,
'use-system-hosts': false, 'use-system-hosts': 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': ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'] 'proxy-server-nameserver': ['https://120.53.53.53/dns-query', 'https://223.5.5.5/dns-query']
}, },
sniffer: { sniffer: {
enable: true, enable: true,

View File

@ -28,10 +28,10 @@ const DNS: React.FC = () => {
'use-hosts': useHosts = false, 'use-hosts': useHosts = false,
'use-system-hosts': useSystemHosts = false, 'use-system-hosts': useSystemHosts = false,
'respect-rules': respectRules = 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 = [ 'proxy-server-nameserver': proxyServerNameserver = [
'https://doh.pub/dns-query', 'https://120.53.53.53/dns-query',
'https://dns.alidns.com/dns-query' 'https://223.5.5.5/dns-query'
] ]
} = dns || {} } = dns || {}
const [changed, setChanged] = useState(false) const [changed, setChanged] = useState(false)
@ -195,7 +195,7 @@ const DNS: React.FC = () => {
</SettingItem> </SettingItem>
<div className="flex flex-col items-stretch"> <div className="flex flex-col items-stretch">
<h3> IP </h3> <h3> IP </h3>
{renderListInputs('fakeIPFilter', '例: +.lan')} {renderListInputs('fakeIPFilter', '例+.lan')}
</div> </div>
<Divider className="my-2" /> <Divider className="my-2" />
</> </>
@ -221,12 +221,12 @@ const DNS: React.FC = () => {
<div className="flex flex-col items-stretch"> <div className="flex flex-col items-stretch">
<h3></h3> <h3></h3>
{renderListInputs('proxyServerNameserver', '例: tls://223.5.5.5')} {renderListInputs('proxyServerNameserver', '例tls://223.5.5.5')}
</div> </div>
<Divider className="my-2" /> <Divider className="my-2" />
<div className="flex flex-col items-stretch"> <div className="flex flex-col items-stretch">
<h3>DNS </h3> <h3>DNS </h3>
{renderListInputs('nameserver', '例: tls://223.5.5.5')} {renderListInputs('nameserver', '例tls://223.5.5.5')}
</div> </div>
<Divider className="my-2" /> <Divider className="my-2" />
<SettingItem title="覆盖DNS策略" divider> <SettingItem title="覆盖DNS策略" divider>