[GH-ISSUE #5046] [Bug]: hysteria2 still cannot disable utls to none #3554

Closed
opened 2026-10-31 20:33:16 +07:00 by bsakaguchi · 4 comments
Owner

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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 ```shell ``` ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:33:16 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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 uTLS Select offers { value: '', label: 'None' } as the first option, so selecting "None" sets fingerprint to an empty string ''.

frontend/src/schemas/protocols/security/tls.ts (line 9–22) — UtlsFingerprintSchema is defined as a strict z.enum(['chrome', 'firefox', 'safari', 'ios', 'android', 'edge', '360', 'qq', 'random', 'randomized', 'randomizednoalpn', 'unsafe']). An empty string is not in that list, and fingerprint defaults to 'chrome'.

When the form is submitted, InboundFormSchema.safeParse(values) runs (in frontend/src/pages/inbounds/form/InboundFormModal.tsx line 407). It rejects fingerprint: '' with the error you see:

streamSettings.tlsSettings.settings.fingerprint — Invalid input

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 uTLS router 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 UtlsFingerprintSchema to accept z.literal('') (or make fingerprint optional in TlsClientSettingsSchema), and ensure the wire normalizer strips or omits the field when the value is empty so Xray receives no fingerprint key rather than an empty string.

<!-- gh-comment-id:4642213219 --> @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 uTLS `Select` offers `{ value: '', label: 'None' }` as the first option, so selecting "None" sets `fingerprint` to an empty string `''`. **`frontend/src/schemas/protocols/security/tls.ts` (line 9–22)** — `UtlsFingerprintSchema` is defined as a strict `z.enum(['chrome', 'firefox', 'safari', 'ios', 'android', 'edge', '360', 'qq', 'random', 'randomized', 'randomizednoalpn', 'unsafe'])`. An empty string is not in that list, and `fingerprint` defaults to `'chrome'`. When the form is submitted, `InboundFormSchema.safeParse(values)` runs (in `frontend/src/pages/inbounds/form/InboundFormModal.tsx` line 407). It rejects `fingerprint: ''` with the error you see: > `streamSettings.tlsSettings.settings.fingerprint — Invalid input` ### 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 uTLS` router 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 `UtlsFingerprintSchema` to accept `z.literal('')` (or make `fingerprint` optional in `TlsClientSettingsSchema`), and ensure the wire normalizer strips or omits the field when the value is empty so Xray receives no `fingerprint` key rather than an empty string.
Author
Owner

@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

<!-- gh-comment-id:4642409120 --> @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
Author
Owner

@gomanuke commented on GitHub (Jun 8, 2026):

Setting ALPN to empty solved outbound hy2 problems...

<!-- gh-comment-id:4646671075 --> @gomanuke commented on GitHub (Jun 8, 2026): Setting ALPN to empty solved outbound hy2 problems...
Author
Owner

@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).

<!-- gh-comment-id:4648389692 --> @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`).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3554
No description provided.