mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5046] [Bug]: hysteria2 still cannot disable utls to none #3554
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#3554
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 @isuroux on GitHub (Jun 7, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5046
Describe the bug
When I'm trying to create hysteria2 inbound, I still can't set utls to none "streamSettings.tlsSettings.settings.fingerprint — Invalid input" though I saw that it should be already fixed. I saw that earlier issue is closed but the problem is there
How to reproduce the problem
open inbounds
create hysteria2 config
in security tab select none in utls
try to save config
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.8
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
Xray config generation
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 (Jun 7, 2026):
Confirmed bug — this is a schema validation mismatch in the frontend, not fixed in v3.2.8.
Root cause
Two files are in conflict:
frontend/src/pages/inbounds/form/security/tls.tsx(line 67–70) — the uTLSSelectoffers{ value: '', label: 'None' }as the first option, so selecting "None" setsfingerprintto an empty string''.frontend/src/schemas/protocols/security/tls.ts(line 9–22) —UtlsFingerprintSchemais defined as a strictz.enum(['chrome', 'firefox', 'safari', 'ios', 'android', 'edge', '360', 'qq', 'random', 'randomized', 'randomizednoalpn', 'unsafe']). An empty string is not in that list, andfingerprintdefaults to'chrome'.When the form is submitted,
InboundFormSchema.safeParse(values)runs (infrontend/src/pages/inbounds/form/InboundFormModal.tsxline 407). It rejectsfingerprint: ''with the error you see:Scope
This is not Hysteria2-specific. Any TLS-secured inbound will hit the same wall when uTLS is set to "None". Hysteria2 makes it more visible because TLS is mandatory for that protocol, so users who need to clear the fingerprint to suppress Xray's
unsupported usage for uTLSrouter error have no way to do it.Status
Issue #4663 reported the same thing in v3.2.0. The owner acknowledged it but it was not fixed before closing. The code in v3.2.8 still has the mismatch.
Fix needed
Extend
UtlsFingerprintSchemato acceptz.literal('')(or makefingerprintoptional inTlsClientSettingsSchema), and ensure the wire normalizer strips or omits the field when the value is empty so Xray receives nofingerprintkey rather than an empty string.@rqzbeh commented on GitHub (Jun 7, 2026):
The default alpn has to be set to unsafe, currently hy2 works fine with alpn unsafe even at external proxy
@gomanuke commented on GitHub (Jun 8, 2026):
Setting ALPN to empty solved outbound hy2 problems...
@MHSanaei commented on GitHub (Jun 8, 2026):
Fixed. Hysteria inbound TLS now defaults uTLS to None and ALPN to h3, the TLS schema accepts the empty uTLS value, and save normalization omits empty fingerprint values from the Xray payload.
Local commit:
af3c8084(fix: default hysteria tls to no utls fingerprint).