Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

使用mkcp报错 #20

Closed
Helpayment opened this issue Dec 3, 2018 · 2 comments
Closed

使用mkcp报错 #20

Helpayment opened this issue Dec 3, 2018 · 2 comments

Comments

@Helpayment
Copy link

大佬,我用mkcp出现报错,我的config.json文件是

{
"api": {
"services": [
"HandlerService",
"StatsService"
],
"tag": "api"
},
"stats": {},
"inbound": {
"port": 10088,
"protocol": "vmess",
"settings": {
"clients": []
},
"streamSettings": {
"network": "mkcp"
"kcpSettings": {
"header": {
"type": "wechat-video"
},
"uplinkCapacity": 100,
"downlinkCapacity": 100,
"tti": 50,
"writeBufferSize": 2,
"mtu": 1350,
"congestion": false,
"readBufferSize": 2
},
},
"tag": "proxy"
},
"inboundDetour": [
{
"listen": "0.0.0.0",
"port": 10086,
"protocol": "dokodemo-door",
"settings": {
"address": "0.0.0.0"
},
"tag": "api"
}
],
"log": {
"access": "./access.log",
"error": "./error.log",
"loglevel": "debug"
},
"outbound": {
"protocol": "freedom",
"settings": {}
},
"routing": {
"settings": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
}
]
},
"strategy": "rules"
},
"policy": {
"levels": {
"1": {
"statsUserUplink": true,
"statsUserDownlink": true
}
}
}
}
您知道哪里参数出问题了吗,谢谢

@MoeGrid
Copy link
Owner

MoeGrid commented Dec 5, 2018

报的啥错?

@Helpayment
Copy link
Author

{
"api": {
"services": [
"HandlerService",
"StatsService"
],
"tag": "api"
},
"stats": {},
"inbound": {
"port": 10088,
"protocol": "vmess",
"settings": {
"clients": []
},
"streamSettings": {
"network": "mkcp",
"kcpSettings": {
"uplinkCapacity": 5,
"downlinkCapacity": 100,
"congestion": true,
"header": {
"type": "none"
}
}
},
"tag": "proxy"
},
"inboundDetour": [
{
"listen": "0.0.0.0",
"port": 10086,
"protocol": "dokodemo-door",
"settings": {
"address": "0.0.0.0"
},
"tag": "api"
}
],
"log": {
"access": "./access.log",
"error": "./error.log",
"loglevel": "debug"
},
"outbound": {
"protocol": "freedom",
"settings": {}
},
"routing": {
"settings": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
}
]
},
"strategy": "rules"
},
"policy": {
"levels": {
"1": {
"statsUserUplink": true,
"statsUserDownlink": true
}
}
}
}
配置好了,问题已经解决

@MoeGrid MoeGrid closed this as completed Dec 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants