mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-06 06:02:09 +03:00
fix(tuic): client speed display and certificate button layout (#6723)
* fix(tuic): restore client speed and certificate layout * docs(tuic): clarify native runtime and protocol behavior * fix(websocket): preserve traffic updates from independent sources * fix(docs): sync websocket traffic schema and drop restating TUIC tests docs/public/openapi.json still described the old traffic event, without clientTrafficSource/clientTrafficIntervalMs or the TUIC oneOf branch, so the docs site showed a payload the panel no longer sends. No check covers that copy. The TUIC certificate layout test and the TUIC speed payload test only read back the literals the code writes, so neither could fail on a real regression. Both are removed, along with the className that existed only for the layout test. --------- Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
@@ -16027,15 +16027,9 @@
|
||||
},
|
||||
{
|
||||
"type": "traffic",
|
||||
"summary": "Live traffic deltas plus online, per-node and last-online maps. Local polls send traffics/clientTraffics; node polls send nodeTraffics.",
|
||||
"summary": "Live traffic deltas plus online, per-node and last-online maps. TUIC also sends source-tagged client deltas with their sampling interval for live speed.",
|
||||
"payloadSchema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"onlineClients",
|
||||
"onlineByGuid",
|
||||
"activeInbounds",
|
||||
"lastOnlineMap"
|
||||
],
|
||||
"properties": {
|
||||
"traffics": {
|
||||
"type": "array",
|
||||
@@ -16049,6 +16043,18 @@
|
||||
"$ref": "#/components/schemas/ClientTraffic"
|
||||
}
|
||||
},
|
||||
"clientTrafficSource": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"xray",
|
||||
"tuic"
|
||||
],
|
||||
"description": "Present for native TUIC samples; omitted Xray samples default to xray."
|
||||
},
|
||||
"clientTrafficIntervalMs": {
|
||||
"type": "integer",
|
||||
"description": "Sampling interval used to calculate client speed, in milliseconds."
|
||||
},
|
||||
"nodeTraffics": {
|
||||
"type": "array",
|
||||
"nullable": true,
|
||||
@@ -16092,13 +16098,24 @@
|
||||
{
|
||||
"required": [
|
||||
"traffics",
|
||||
"clientTraffics"
|
||||
"clientTraffics",
|
||||
"onlineClients",
|
||||
"onlineByGuid",
|
||||
"activeInbounds",
|
||||
"lastOnlineMap"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"nodeTraffics"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"clientTraffics",
|
||||
"clientTrafficSource",
|
||||
"clientTrafficIntervalMs"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user