[GH-ISSUE #5551] [Bug]: No hysteria 2 in inbound create #3875

Closed
opened 2026-10-31 20:35:35 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SILENX-SP on GitHub (Jun 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5551

Describe the bug

When I try to create new inbound there is no hysteria 2 in protocol select.

How to reproduce the problem

Open inbounds page
Create new inbound

Expected behavior

I expected to see hysteria 2 protocol.

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.4.0

Xray-core version

26.6.22

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

Xray config generation, Frontend (UI / panel pages)

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 @SILENX-SP on GitHub (Jun 25, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5551 ### Describe the bug When I try to create new inbound there is no hysteria 2 in protocol select. ### How to reproduce the problem Open inbounds page Create new inbound ### Expected behavior I expected to see hysteria 2 protocol. ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.0 ### Xray-core version 26.6.22 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? Xray config generation, Frontend (UI / panel pages) ### 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:35:35 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 25, 2026):

Hysteria 2 is present in the protocol dropdown — it is listed as hysteria, not "hysteria 2" or "hysteria2". Selecting hysteria creates a Hysteria2 inbound; version is locked to 2 and cannot be changed.

This is confirmed in the source:

  • internal/database/model/model.go (line 20–23): "Hysteria v2 is not a distinct protocol — it is plain 'hysteria' with streamSettings.version = 2. The share-link URI scheme 'hysteria2://' is independent of this and is still emitted by the link generator when the stream version is 2."
  • frontend/src/schemas/protocols/stream/hysteria.ts: version: z.literal(2).default(2) — version is always 2.
  • frontend/src/pages/inbounds/form/protocols/hysteria.tsx: the Version field renders as <InputNumber min={2} max={2} disabled /> — displayed as read-only "2".
  • The protocol dropdown in frontend/src/pages/inbounds/form/InboundFormModal.tsx is built directly from Object.values(Protocols), and Protocols.HYSTERIA = 'hysteria' is the only Hysteria entry (frontend/src/schemas/primitives/protocol.ts).

To create a Hysteria 2 inbound: open the inbound creation form, select hysteria from the Protocol dropdown. The panel will configure it as Hysteria2 (version 2) and the generated share link will use the hysteria2:// URI scheme.

There is no behavior change between 3.4.0 (the version you reported) and the current dev-latest build for this area of the code. If the hysteria entry is also missing from your dropdown, please provide a screenshot and the browser console output, as that would indicate a different problem (possibly a stale cached build or a frontend asset issue — try a hard refresh with Ctrl+Shift+R).


This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4797198903 --> @github-actions[bot] commented on GitHub (Jun 25, 2026): Hysteria 2 is present in the protocol dropdown — it is listed as **`hysteria`**, not "hysteria 2" or "hysteria2". Selecting `hysteria` creates a Hysteria2 inbound; version is locked to 2 and cannot be changed. This is confirmed in the source: - `internal/database/model/model.go` (line 20–23): *"Hysteria v2 is not a distinct protocol — it is plain 'hysteria' with streamSettings.version = 2. The share-link URI scheme 'hysteria2://' is independent of this and is still emitted by the link generator when the stream version is 2."* - `frontend/src/schemas/protocols/stream/hysteria.ts`: `version: z.literal(2).default(2)` — version is always 2. - `frontend/src/pages/inbounds/form/protocols/hysteria.tsx`: the Version field renders as `<InputNumber min={2} max={2} disabled />` — displayed as read-only "2". - The protocol dropdown in `frontend/src/pages/inbounds/form/InboundFormModal.tsx` is built directly from `Object.values(Protocols)`, and `Protocols.HYSTERIA = 'hysteria'` is the only Hysteria entry (`frontend/src/schemas/primitives/protocol.ts`). **To create a Hysteria 2 inbound:** open the inbound creation form, select `hysteria` from the Protocol dropdown. The panel will configure it as Hysteria2 (version 2) and the generated share link will use the `hysteria2://` URI scheme. There is no behavior change between 3.4.0 (the version you reported) and the current `dev-latest` build for this area of the code. If the `hysteria` entry is also missing from your dropdown, please provide a screenshot and the browser console output, as that would indicate a different problem (possibly a stale cached build or a frontend asset issue — try a hard refresh with Ctrl+Shift+R). --- *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@SILENX-SP commented on GitHub (Jun 25, 2026):

Image
<!-- gh-comment-id:4797224579 --> @SILENX-SP commented on GitHub (Jun 25, 2026): <img width="762" height="441" alt="Image" src="https://github.com/user-attachments/assets/473805ca-66f7-4d2a-b70d-0c56c1b3f3c6" />
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#3875
No description provided.