mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4529] Bug report Traffic issue #3098
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3098
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jazavaja on GitHub (May 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4529
Describe the bug
Hello,
I think there might be a bug with traffic accounting in 3x-ui / Xray when using VLESS + XHTTP + Vercel Relay.
Setup
Problem
Traffic usage shown in the panel appears to be incorrect or heavily overcounted.
For example:
However, after only a few speed tests (from the Windows client ping/speed option), the panel reports extremely high traffic usage (hundreds of MB or even GB).
Important note
The Windows client speed test shows unrealistic bandwidth values (e.g. ~300 Mbps), while my real connection speed is much lower and cannot realistically transfer that amount of data in such a short time.
I also:
but the issue persists.
My suspicion is that traffic accounting may be affected by:
Has anyone experienced this issue before, or is this a known limitation/bug with XHTTP + relay setups?
Thank you.
150 mb just one time speed test in v2rayn client!
How to repeat the problem?
For privacy and security reasons, I have redacted or replaced sensitive values in the inbound configuration below (domain names, UUIDs, paths, certificate locations, relay details, IPs, and user-specific identifiers). The overall structure and relevant technical settings are preserved for debugging purposes.
`{
"id": 1,
"enable": true,
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"email": "user1",
"enable": true,
"flow": "",
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"limitIp": 0,
"subId": "xxxx",
"totalGB": 5368709120
}
],
"decryption": "none",
"encryption": "none"
},
"streamSettings": {
"network": "xhttp",
"security": "tls",
},
"tag": "inbound-443",
"sniffing": {
"enabled": false,
"destOverride": [
"http",
"tls",
"quic",
"fakedns"
]
}
}`
Expected action
توقع داشتم نهایتا چن مگ کم کنه ن یک گیگ و نیم اصلا سرعت دانلود و اپلودم انقدر ضعیفه نمیتونه در حد چن دقیقه 1 گیگ و نیم دانلود کنه یا اپلود ک حجم اینقدر زده
Received action
{
"id": 1,
"userId": 0,
"up": 0,
"down": 0,
"total": 0,
"allTime": 2155873726,
"remark": "",
"enable": true,
"expiryTime": 0,
"trafficReset": "never",
"lastTrafficResetTime": 1779620130539,
"listen": "",
"port": 443,
"protocol": "vless",
"settings": "{\n "clients": [\n {\n "comment": "",\n "created_at": 1779569448000,\n "email": "ahmadreza",\n "enable": true,\n "expiryTime": 0,\n "flow": "",\n "id": "7c552b9f-1d86-41a1-876d-9d555d7157de",\n "limitIp": 0,\n "reset": 0,\n "subId": "ahmad",\n "tgId": "",\n "totalGB": 5368709120,\n "updated_at": 1779572576000\n }\n ],\n "decryption": "none",\n "encryption": "none"\n}",
"streamSettings": "{"network":"xhttp","security":"tls","externalProxy":[],"tlsSettings":{"serverName":"bb.secrect-domain-sorry.bb","minVersion":"1.0","maxVersion":"1.3","cipherSuites":"","rejectUnknownSni":false,"disableSystemRoot":false,"enableSessionResumption":false,"certificates":[{"certificateFile":"/root/cert/bb.secrect-domain-sorry.bb/fullchain.pem","keyFile":"/root/cert/bb.secrect-domain-sorry.bb/privkey.pem","oneTimeLoading":false,"usage":"encipherment","buildChain":false}],"alpn":["h2","http/1.1"],"echServerKeys":"","settings":{"fingerprint":"chrome","echConfigList":""}},"xhttpSettings":{"path":"/api","host":"bb.secrect-domain-sorry.bb","mode":"auto","xPaddingBytes":"100-1000","xPaddingObfsMode":false,"xPaddingKey":"","xPaddingHeader":"","xPaddingPlacement":"","xPaddingMethod":"","sessionPlacement":"","sessionKey":"","seqPlacement":"","seqKey":"","uplinkDataPlacement":"","uplinkDataKey":"","scMaxEachPostBytes":"1000000","noSSEHeader":false,"scMaxBufferedPosts":30,"scStreamUpServerSecs":"20-80","serverMaxHeaderBytes":0,"headers":{}}}",
"tag": "inbound-443",
"sniffing": "{"enabled":false,"destOverride":["http","tls","quic","fakedns"],"metadataOnly":false,"routeOnly":false}",
"clientStats": [
{
"id": 2,
"inboundId": 1,
"enable": true,
"email": "ahmadreza",
"uuid": "7c552b9f-1d86-41a1-876d-9d555d7157de",
"subId": "ahmad",
"up": 0,
"down": 15794176,
"allTime": 2152961697,
"expiryTime": 0,
"total": 5368709120,
"reset": 0,
"lastOnline": 1779620139003
}
],
"nodeId": null,
"_cachedInbound": {
"port": 443,
"listen": "",
"_protocol": "vless",
"settings": {
"protocol": "vless",
"vlesses": [
{
"email": "ahmadreza",
"limitIp": 0,
"totalGB": 5368709120,
"expiryTime": 0,
"enable": true,
"tgId": "",
"subId": "ahmad",
"comment": "",
"reset": 0,
"created_at": 1779569448000,
"updated_at": 1779572576000,
"id": "7c552b9f-1d86-41a1-876d-9d555d7157de",
"flow": "",
"reverseTag": "",
"reverseSniffing": {
"enabled": false,
"destOverride": [
"http",
"tls",
"quic",
"fakedns"
],
"metadataOnly": false,
"routeOnly": false,
"ipsExcluded": [],
"domainsExcluded": []
}
}
],
"decryption": "none",
"encryption": "none",
"fallbacks": [],
"testseed": []
},
"stream": {
"network": "xhttp",
"security": "tls",
"externalProxy": [],
"tls": {
"sni": "bb.secrect-domain-sorry.bb",
"minVersion": "1.0",
"maxVersion": "1.3",
"cipherSuites": "",
"rejectUnknownSni": false,
"disableSystemRoot": false,
"enableSessionResumption": false,
"certs": [
{
"useFile": true,
"certFile": "/root/cert/bb.secrect-domain-sorry.bb/fullchain.pem",
"keyFile": "/root/cert/bb.secrect-domain-sorry.bb/privkey.pem",
"cert": "",
"key": "",
"oneTimeLoading": false,
"usage": "encipherment",
"buildChain": false
}
],
"alpn": [
"h2",
"http/1.1"
],
"echServerKeys": "",
"settings": {
"fingerprint": "chrome",
"echConfigList": ""
}
},
"reality": {
"show": false,
"xver": 0,
"target": "www.sony.com:443",
"serverNames": "www.sony.com",
"privateKey": "",
"minClientVer": "",
"maxClientVer": "",
"maxTimediff": 0,
"shortIds": "5ada34,06cb,d836796522,085fcfd5386a8b,70accf40c2513de6,dcdef70efdcd,d6,2d5b1b0d",
"mldsa65Seed": "",
"settings": {
"publicKey": "",
"fingerprint": "chrome",
"serverName": "",
"spiderX": "/",
"mldsa65Verify": ""
}
},
"tcp": {
"acceptProxyProtocol": false,
"type": "none",
"request": {
"version": "1.1",
"method": "GET",
"path": [
"/"
],
"headers": []
},
"response": {
"version": "1.1",
"status": "200",
"reason": "OK",
"headers": []
}
},
"kcp": {
"mtu": 1350,
"tti": 20,
"upCap": 5,
"downCap": 20,
"cwndMultiplier": 1,
"maxSendingWindow": 2097152
},
"ws": {
"acceptProxyProtocol": false,
"path": "/",
"host": "",
"headers": [],
"heartbeatPeriod": 0
},
"grpc": {
"serviceName": "",
"authority": "",
"multiMode": false
},
"httpupgrade": {
"acceptProxyProtocol": false,
"path": "/",
"host": "",
"headers": []
},
"xhttp": {
"path": "/api",
"host": "bb.secrect-domain-sorry.bb",
"mode": "auto",
"xPaddingBytes": "100-1000",
"xPaddingObfsMode": false,
"xPaddingKey": "",
"xPaddingHeader": "",
"xPaddingPlacement": "",
"xPaddingMethod": "",
"sessionPlacement": "",
"sessionKey": "",
"seqPlacement": "",
"seqKey": "",
"uplinkDataPlacement": "",
"uplinkDataKey": "",
"scMaxEachPostBytes": "1000000",
"noSSEHeader": false,
"scMaxBufferedPosts": 30,
"scStreamUpServerSecs": "20-80",
"serverMaxHeaderBytes": 0,
"headers": []
},
"hysteria": {
"version": 2,
"auth": "",
"udpIdleTimeout": 60
},
"finalmask": {
"tcp": [],
"udp": []
}
},
"tag": "inbound-443",
"sniffing": {
"enabled": false,
"destOverride": [
"http",
"tls",
"quic",
"fakedns"
],
"metadataOnly": false,
"routeOnly": false,
"ipsExcluded": [],
"domainsExcluded": []
},
"clientStats": [
{
"id": 2,
"inboundId": 1,
"enable": true,
"email": "ahmadreza",
"uuid": "7c552b9f-1d86-41a1-876d-9d555d7157de",
"subId": "ahmad",
"up": 0,
"down": 15794176,
"allTime": 2152961697,
"expiryTime": 0,
"total": 5368709120,
"reset": 0,
"lastOnline": 1779620139003
}
]
}
}
3x-ui Version
3.0.2
Xray-core Version
No response
Checklist