Integrity requirements
Description
I was trying to updating https://github.com/hiddify/xtlsapi However, the new statsonline API seems is not working. while, the statsquery works fine.
It shows the following error:
failed to get stats: rpc error: code = Unknown desc = app/stats/command: user>>>>>>online not found.
Reproduction Method
run xray and try to use new commands
./xray api statsonline
failed to get stats: rpc error: code = Unknown desc = app/stats/command: user>>>>>>online not found.
./xray api stats
failed to get stats: rpc error: code = Unknown desc = app/stats/command: not found.
./xray api statsquery
{
"stat": [
{
"name": "outbound>>>freedom>>>traffic>>>uplink",
"value": 146
},
{
"name": "outbound>>>out>>>traffic>>>uplink"
},
{
"name": "user>>>4b50ac78-80e7-4749-bc73-9b44bc32d071@hiddify.com>>>traffic>>>uplink",
"value": 146
},
{
"name": "inbound>>>xtls>>>traffic>>>downlink"
},
{
"name": "inbound>>>socks>>>traffic>>>downlink",
"value": 1288
},
{
"name": "inbound>>>xtls>>>traffic>>>uplink",
"value": 210
},
{
"name": "outbound>>>freedom>>>traffic>>>downlink",
"value": 1272
},
{
"name": "outbound>>>out>>>traffic>>>downlink",
"value": 1276
},
{
"name": "user>>>4b50ac78-80e7-4749-bc73-9b44bc32d071@hiddify.com>>>traffic>>>downlink",
"value": 1272
},
{
"name": "inbound>>>socks>>>traffic>>>uplink",
"value": 184
}
]
}
Client config
Details
Server config
Details
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"tag": "socks",
"listen": "127.0.0.1",
"port": 1234,
"protocol": "socks",
"settings": {
"udp": true
}
},
{
"tag": "xtls",
"listen": "127.0.0.1",
"port": 1235,
"protocol": "vless",
"settings": {
"decryption": "none",
"clients": [
{
"id": "4b50ac78-80e7-4749-bc73-9b44bc32d071",
"email": "4b50ac78-80e7-4749-bc73-9b44bc32d071@hiddify.com"
}
]
}
}
],
"outbounds": [
{
"tag": "freedom",
"protocol": "freedom"
},
{
"tag": "out",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"port": 1235,
"users": [
{
"id": "4b50ac78-80e7-4749-bc73-9b44bc32d071",
"encryption": "none"
}
]
}
]
}
}
],
"api": {
"tag": "api",
"listen": "127.0.0.1:8080",
"services": [
"HandlerService",
"LoggerService",
"StatsService",
"RoutingService"
]
},
"stats": {},
"policy": {
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true,
"statsUserOnline": true
}
},
"system": {
"statsInboundUplink": true,
"statsInboundDownlink": true,
"statsOutboundUplink": true,
"statsOutboundDownlink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"socks"
],
"outboundTag": "out",
"type": "field"
},
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
}
]
}
}
Client log
Details
Server log
Details
Integrity requirements
Description
I was trying to updating
https://github.com/hiddify/xtlsapiHowever, the newstatsonlineAPI seems is not working. while, the statsquery works fine.It shows the following error:
Reproduction Method
run xray and try to use new commands
Client config
Details
Server config
Details
Client log
Details
Server log
Details