mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6861] [Feature]: Add zero_rtt_handshake and disable_sni Support for TUIC #4560
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#4560
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 @daemn119-boop on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6861
Is your feature request related to a problem?
Currently, 3X-UI does not provide options to configure
zero_rtt_handshakeanddisable_snifor TUIC in generated share links and subscription links.Some clients, such as NekoBox for Android and sing-box on OpenWrt, may require these options to be configured explicitly. Without them, users have to manually edit their client configurations, which is inconvenient and makes configuration management more difficult.
Describe the solution you'd like
Please add two configurable options for TUIC in 3X-UI:
zero_rtt_handshake— enable or disable 0-RTT.disable_sni— enable or disable SNI.These options should be configurable in the TUIC inbound settings and included in generated share links and subscription output when enabled.
For example, the generated TUIC link could include the following parameters, provided they are supported by the relevant URI format and client:
zero_rtt_handshake=1&disable_sni=1Ideally, both options should be disabled by default to preserve backward compatibility.
This would allow users to configure TUIC clients without manually editing exported configurations and would improve compatibility with sing-box-based clients.
Thank you for considering this feature request!
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Oct 17, 2026):
This is a valid feature request. Part of it already exists. The TUIC inbound already has a Zero-RTT Handshake switch, and the Clash/Mihomo export already uses it. The
tuic://share link does not include it, and the panel has nodisable_snioption anywhere.What the code does today
settings.server.zero_rtt_handshake(frontend/src/pages/inbounds/form/protocols/tuic.tsx:100). The built-in TUIC server passes it to QUIC asAllow0RTT: inst.ZeroRTTHandshake,(internal/tuic/server.go:107)."reduce-rtt": inst.ZeroRTTHandshake,(internal/sub/clash_service.go:713). The YAML you download from the QR modal writesreduce-rtt: ${reduceRtt}(frontend/src/pages/clients/tuicConfig.ts:64).tuic://share link: this is the gap. The Go subscription builder (genTuicLink,internal/sub/service.go:871-887) only writescongestion_control,alpn,sni,udp_relay_modeandallow_insecure. The link built in the panel (genTuicLink,frontend/src/lib/xray/inbound-link.ts:918-944) writes the same five. Neither one adds a 0-RTT parameter, even when the inbound has 0-RTT turned on.disable_sni: nothing ininternal/orfrontend/srcdefines it. It is purely a client-side TLS option: the server cannot see whether a client sends SNI. The panel could only add it as a hint in the link and the subscription output.case "amneziawg", "tuic": continueatinternal/sub/json_service.go:678). Clients that read the JSON subscription get no TUIC entry, with or without these options.Notes for whoever implements it
zero_rtt_handshakevalue into thetuic://query. It has to go into both link builders above, because the panel and the subscription server generate links separately.disable_sniwould need a new field, and it should stay off by default, as you asked. That means a schema field, a form switch, a new i18n key in all 13 locale files, and the two link builders. Its only effect is on what clients receive.tuic://has no official URI standard. Clients read these parameter names differently, so the names should be checked against the clients you mentioned (NekoBox, sing-box) before they are chosen. I have not checked that here.I found no earlier issue requesting this. #6757 (BBR in uppercase for TUIC) touches the same link code but is a different problem.
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.