-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_mkcp.json
36 lines (36 loc) · 1.35 KB
/
config_mkcp.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
{
"inbounds": [
{
"port": 52001 , // 服务器监听端口
"protocol": "vmess", // 主传入协议
"settings": {
"clients": [
{
"id": "9ac9a0b3-e80b-466b-813a-738c6cfd46cd", // 用户 ID,客户端与服务器必须相同
"alterId": 20, // 伪装值,1-100,值越大cpu能耗越大,0为关闭
"security": "auto"
}
]
},
"streamSettings": {
"network": "mkcp", //此处的 mkcp 也可写成 kcp,两种写法
"kcpSettings": {
"uplinkCapacity": 100, // 上行流量限制,MB
"downlinkCapacity": 100, // 上行流量限制,MB
"congestion": true, // 拥塞控制,"false"关闭,当丢包严重时,会自动降低吞吐量
"readBufferSize": 10, // 读取缓存区大小,一般3MB
"writeBufferSize": 10, // 写入缓存区大小,MB,网络环境极差可增加缓存
"header": {
"type": "utp" // none不伪装,srtp 视频通话,utp BT下载, echat-video 微信通话,dtls DTLS数据包,wireguard WireGuard 数据包
}
}
}
}
],
"outbounds": [
{
"protocol": "freedom", // 主传出协议
"settings": {}
}
]
}