-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or request
Description
Shadowsocks都增加了单端口多用户功能,那么是否可以增加一个动态增删routing的api,现有的API只能操作inbound和outbound。
以至于动态控制出口功能实现需要采用在路由中添加多条预设好的规则,用inboundTag和outboundTag来控制路由。
谢谢
例:
{
"routing": {
"strategy": "rules",
"settings": {
"rules": [{
"type": "field",
"inboundTag": ["api"],
"outboundTag": "api"
}, {
"outboundTag": "1_out",
"type": "field",
"inboundTag": ["1_in"]
}, {
"outboundTag": "2_out",
"type": "field",
"inboundTag": ["2_in"]
}, {
"type": "field",
"inboundTag": ["3_in"],
"outboundTag": "3_out"
}, {
"inboundTag": ["4_in"],
"outboundTag": "4_out",
"type": "field"
}
]
}
},
"stats": {},
"log": {
"loglevel": "debug"
},
"api": {
"services": ["HandlerService", "LoggerService", "StatsService"],
"tag": "api"
},
"policy": {
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true
},
"1": {
"statsUserUplink": true,
"statsUserDownlink": true
}
},
"system": {
"statsInboundUplink": true,
"statsInboundDownlink": true
}
},
"inbounds": [{
"listen": "0.0.0.0",
"port": 9998,
"protocol": "dokodemo-door",
"settings": {
"address": "0.0.0.0"
},
"tag": "api"
}
],
"outbounds": []
}
另外吐槽以下v2fly/v2ray-core项目的go mod,项目地址都改为v2fly了,代码里面引用还依旧是v2ray.com的地址,导致go mod 不断重复load 旧版本的包。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or request