-
Notifications
You must be signed in to change notification settings - Fork 138
/
cns.json
executable file
·39 lines (28 loc) · 1.18 KB
/
cns.json
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
{
"//": "tcp超时, 默认600秒",
"Tcp_timeout": 600,
"//": "udp超时, 默认30秒",
"Udp_timeout": 30,
"//": "http_tunnel监听地址, 可设置多个",
"listen_addr": [":2222", ":12224"],
"//": "设定请求头中获取host的key, 默认Host",
"proxy_key": "Host",
"//": "加密密码, 默认没有密码(普通http_tunnel代理)",
"encrypt_password": "password",
"//": "开启tcpDNS转udpDNS, 可稍微加快DNS解析速度, 默认关闭",
"Enable_dns_tcpOverUdp": true,
"//": "开启httpDNS, httpDNS无需http_tunnel握手, 可稍微加快DNS解析速度, 默认关闭",
"Enable_httpDNS": true,
"//": "开启tcpFastOpen, 可稍微加快创建连接速度(免流可能不适用), 默认关闭",
"Enable_TFO": false,
"//": "以下是tls配置",
"Tls": {
"//": "tls监听地址, 可设置多个",
"listen_addr": ["127.0.0.1:8978", "[::1]:1224", ":9635"],
"//": "自动生成指定host的ssl/tls证书(如果留空则所有host都可以连接)",
"AutoCertHosts": ["m.baidu.com", "yaohuo.me", "mymy.ip"],
"//": "手动指定cert和key文件, 两者必须同时存在",
"cert_file": "cert.pem",
"key_file": "key.pem"
}
}