|
[ol]{ "stats": {}, "log" : { "access": "/usr/logs/v2ray/access.out", "error": "/usr/logs/v2ray/error.out", "loglevel": "info" }, "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": [{ "port": 12089, "protocol": "vmess", "settings": { "clients": [ { "id": "ee8ff91c-3692-4161-b7f1-f5d8386aec21", "email" : "XXXX@qq.com", "level": 0, "alterId": 64 } ] }, "tag" : "vmess" }, { "port": 8080, "protocol": "mtproto", "listen":"0.0.0.0", "tag" : "mtproto-in", "settings": { "users" : [{"secret":"c00cd07623f7a213b9450eaf9b7b6932"}] } }, { "listen": "127.0.0.1", "port": 10085, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" }], "outbounds": [{ "protocol": "freedom", "settings": {} },{ "protocol": "blackhole", "settings": {}, "tag": "blocked" },{ "protocol": "mtproto", "settings": {}, "tag": "mtproto-out" }], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" }, { "type": "field", "inboundTag": ["mtproto-in"], "outboundTag": "mtproto-out" }, { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" } ], "strategy": "rules" }}[/ol]复制代码
/usr/bin/v2ray/v2ctl api --server=127.0.0.1:10085 StatsService.GetStats 'name: "user>>>XXX@qq.com>>>traffic>>>downlink" reset: false'
执行就卡住
后台报错不能与127.0.0.1:0通讯,怀疑是dokodemo-door配置有问题 |
|