mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5551] [Bug]: No hysteria 2 in inbound create #3875
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#3875
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 @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
@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". Selectinghysteriacreates 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".frontend/src/pages/inbounds/form/InboundFormModal.tsxis built directly fromObject.values(Protocols), andProtocols.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
hysteriafrom the Protocol dropdown. The panel will configure it as Hysteria2 (version 2) and the generated share link will use thehysteria2://URI scheme.There is no behavior change between 3.4.0 (the version you reported) and the current
dev-latestbuild for this area of the code. If thehysteriaentry 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.
@SILENX-SP commented on GitHub (Jun 25, 2026):