mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6978] [Bug]: TUIC inbound disappears from subscription clients after upgrading to v3.11.0 #4602
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#4602
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 @djoker0726-ui on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6978
Describe the bug
After upgrading 3x-ui from v3.10.2 to v3.11.0, the TUIC inbound disappeared from the proxy list in both v2rayN and Shadowrocket after updating the subscription.
The TUIC inbound still exists in the 3x-ui panel, and clients are attached to it. The Exclude from subscription option is disabled.
When opening the subscription URL directly in a browser, the TUIC link is present in the subscription content. However, after updating the subscription in either v2rayN or Shadowrocket, the TUIC proxy is missing from the list.
Adding the TUIC link manually to either application works correctly, and the connection is successful.
This issue did not occur in 3x-ui v3.10.2. It started immediately after upgrading to v3.11.0 and updating the subscriptions.
How to reproduce the problem
Upgrade 3x-ui from v3.10.2 to v3.11.0.
Make sure a TUIC inbound exists and has clients attached.
Ensure that Exclude from subscription is disabled for the TUIC inbound.
Update the subscription in v2rayN or Shadowrocket.
Observe that the TUIC proxy is missing from the proxy list.
Open the same subscription URL in a browser and verify that the TUIC link is present in the subscription content.
Add the TUIC link manually to the application.
Verify that the manually added TUIC proxy appears in the list and connects successfully.
Repeat the subscription update in the other application and observe the same issue.
Expected behavior
The TUIC inbound should remain available in the proxy list after updating the subscription, as it did in 3x-ui v3.10.2.
Actual behavior
The TUIC inbound disappears from the proxy list after updating the subscription in both v2rayN and Shadowrocket, even though the TUIC link is present in the subscription content served by 3x-ui.
Manually adding the same TUIC link works correctly.
Environment
3x-ui version: v3.11.0
Previous working version: v3.10.2
Proxy clients: v2rayN and Shadowrocket
Subscription format: Standard subscription (not Xray JSON)
TUIC inbound: Enabled and assigned to clients
Exclude from subscription: Disabled
Additional information
The issue occurs in two different proxy clients. The TUIC inbound itself appears to be functional because a manually added TUIC link connects successfully.
The issue may be related to a change in subscription generation or subscription parsing introduced in v3.11.0, but the exact cause has not yet been determined.
Relevant logs
Screenshots
3x-ui version
3.11.0
Xray-core version
26.6.27
How did you install 3x-ui?
Docker / Docker Compose
Operating system
Ubuntu 22.04.5 LTS
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
Firefox 158.0.1
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Oct 27, 2026):
This is a real regression in v3.11.0. The standard subscription that v2rayN and Shadowrocket download now leaves out the TUIC link. The HTML page your browser shows still has it, because that page is built from a different code path.
What changed. v3.11.0 added a cache for subscription bodies (commit
73fad424, "perf(sub): cache each inbound's settings without clients for subscription bodies (#6758)"). The cache keeps each inbound'ssettingsJSON without itsclientsarray. Most link generators look up the client in the clients table, so they still work. The TUIC generator is the exception: it still reads the client's UUID and password fromsettings.clients. In the cached copy that array is gone, so it finds no client and returns an empty string.Why the browser still shows it. The browser gets the HTML subscription page (
buildSubPageData,internal/sub/controller.go:436). That page setssubscriptionBody = false, which skips the cache, so it reads the full settings. Apps get the raw body (internal/sub/controller.go:504), which setssubscriptionBody = trueand goes through the cache.Workaround until it is fixed: keep the TUIC link added by hand in v2rayN or Shadowrocket. As you found, that link works. Other protocols in the same subscription are not affected.
@MHSanaei: confirmed regression in v3.11.0. Raw subscriptions drop every TUIC link.
Suggested fix: make
genTuicLinkresolve the client throughs.clientForLink(inbound, email)(usingID/Passwordfrom the clients table), as the other generators do, and keepInstanceFromInboundonly for inbound-level fields (cc, alpn, sni, udp_relay_mode). If TUIC credentials are not reliably stored in the clients table, the alternative is to addmodel.TUICto the full-settings exception insubscriptionSettings(service.go:790), next to WireGuard and AmneziaWG. That also covers the Clash fallback. A regression test should fetch a raw subscription through the cachedsubscriptionBody = truepath and assert that thetuic://line is present.I could not open the screenshots, but the written report was enough to settle this.
This reply was generated automatically; a maintainer may follow up.
@MHSanaei commented on GitHub (Nov 2, 2026):
Fixed on main in
43af7ada(fix(sub): restore TUIC links in subscriptions after v3.11.0, #6963): TUIC inbounds read their full settings again, so raw subscriptions carry the TUIC link.