-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Expand file tree
/
Copy pathclashConfig.js
More file actions
63 lines (62 loc) · 1.52 KB
/
clashConfig.js
File metadata and controls
63 lines (62 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* Clash Configuration
* Base configuration template for Clash client
*/
export const CLASH_CONFIG = {
'port': 7890,
'socks-port': 7891,
'allow-lan': false,
'mode': 'rule',
'log-level': 'info',
'geodata-mode': true,
'geo-auto-update': true,
'geodata-loader': 'standard',
'geo-update-interval': 24,
'geox-url': {
'geoip': "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat",
'geosite': "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat",
'mmdb': "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country.mmdb",
'asn': "https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb"
},
'rule-providers': {
// 将由代码自动生成
},
'dns': {
'enable': true,
'ipv6': false,
'respect-rules': true,
'enhanced-mode': 'fake-ip',
'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'
],
'nameserver-policy': {
'geosite:cn,private': [
'https://120.53.53.53/dns-query',
'https://223.5.5.5/dns-query'
],
'geosite:geolocation-!cn': [
'https://dns.cloudflare.com/dns-query',
'https://dns.google/dns-query'
]
}
},
'tun': {
'enable': true,
'stack': 'mixed',
'dns-hijack': [
'any:53',
'tcp://any:53'
],
'auto-route': true,
'auto-redirect': true,
'auto-detect-interface': true,
'strict-route': true
},
'proxies': [],
'proxy-groups': []
};