mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6757] [Bug]: BBR uppercase TUIC #4502
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#4502
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 @44656e6973 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6757
Describe the bug
By default, the TUIC panel outputs a string like:
congestion_control=BBR&udp_relay_mode=. However, Throne, necoray, and Hiddify report the error:unknown congestion control algorithm: BBR.How to reproduce the problem
Solution: write 'BBR' in lowercase as 'bbr'.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.9.0
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Debian GNU/Linux 13 (trixie)
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Oct 6, 2026):
I can't reproduce this from the v3.9.0 source. Every TUIC link and config generator in 3x-ui v3.9.0 lowercases the congestion controller before writing it out, and none of them can emit an empty
udp_relay_mode=. So the link you imported most likely did not come from a v3.9.0 generator. To track down where it came from, I need the details below.What the code does in v3.9.0
frontend/src/lib/xray/inbound-link.ts:926-929):normalizeTuicCongestionController(frontend/src/lib/tuic.ts:6) doesswitch (value.trim().toLowerCase())and only returns'bbr','cubic'or'new_reno'. The testcanonicalizes legacy flat controller values to the Go runtime default(frontend/src/test/inbound-link.test.ts:1236-1268) covers exactly this case:{ value: 'BBR', expected: 'bbr' }.udp_relay_modeto... || 'native'(inbound-link.ts:947-949), so it can't produce an empty value.internal/sub/service.go:870-874) usesinst.CongestionControl. That value has already been passed throughNormalizeCongestionControl(internal/tuic/types.go:196, which doesstrings.ToLower(strings.TrimSpace(value))attypes.go:263). An emptyudp_relay_modeis defaulted to"native"(types.go:204-206).frontend/src/pages/clients/tuicConfig.ts:43) uses the same normaliser.BBRis only the display label. The stored value is lowercase:{ label: 'BBR', value: 'bbr' }(frontend/src/pages/inbounds/form/protocols/tuic.tsx:200).This normalisation arrived in
0054e671 feat(tuic): implement native in-process Go TUIC v5 server (#6577), which is first shipped in v3.9.0. The TUIC link code in these files hasn't changed between v3.9.0 andmain. In v3.8.5 the panel link copied the stored value through unchanged ((server.congestion_control as string) || ... || 'bbr'), so a link generated before you upgraded could still contain whatever value was stored.What would settle it (please reply as text; I can't read the image in the report):
/sub/...), or a link you copied before upgrading to 3.9.0 or built by hand?settingsJSON for this TUIC inbound, with secrets redacted, from the inbound's JSON/edit view.Verdict: Insufficient information
Severity: N/A
Confidence: Medium
Root cause: Not found. In v3.9.0, every TUIC link path lowercases
congestion_controland defaultsudp_relay_modetonative, so the reported string does not match any current generator.Already fixed: Possibly. Normalisation landed in
0054e671(#6577), first released in v3.9.0. It would apply if the link was generated by v3.8.x or earlier.Duplicate of: None
Evidence:
frontend/src/lib/tuic.ts:6;frontend/src/lib/xray/inbound-link.ts:926-929,947-949;internal/tuic/types.go:196,204-206,263;internal/sub/service.go:870-874; testfrontend/src/test/inbound-link.test.ts:1240;git tag --contains 0054e671→v3.9.0,dev-latest.Not determined: Which generator (or older version) produced
congestion_control=BBR&udp_relay_mode=. Item 1 + 2 above would settle it.This reply was generated automatically; a maintainer may follow up.