- MsNeo2019-02-21高级会员88608
- 本帖最后由 MsNeo 于 2019-2-21 16:18 编辑 *
因为现在想在同一台鸡鸡上多开一个MTProto,可是看官网是支持多协议同时启用,可是我试了下怎么也只能单开一个,是少配置了什么东西吗?
配置文件如下:{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [
{
"tag": "tg-in",
"port": 8087,
"protocol": "mtproto",
"settings": {
"users": [
{
"secret": "9c32360eee5b71ea685586a189ce3798"
}
]
}
},
{
"tag": "vmess-in",
"port": 8086,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "1f9b35df-4fa4-43b9-87db-82f0d046cf56",
"alterId": 10
}
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": [
"vmess-in"
],
"outboundTag": "vmess-out"
},
{
"type": "field",
"inboundTag": [
"tg-in"
],
"outboundTag": "tg-out"
}
]
},
"outbounds": [
{
"tag": "tg-out",
"protocol": "mtproto",
"settings": {}
},
{
"tag": "vmess-out",
"protocol": "freedom",
"settings": {}
}
]
}报错如下:
failed to read config file at line 7 char 14 > json: cannot unmarshal array into Go struct field Config.inbound of type conf.InboundDetourConfig
可是我上V2官网仔细看了下文档的Inbound,貌似没写多协议同时用的情况。修改好了,路由那里少了东西,放上了正确的配置文件了。