mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4076] [MERGED] fix(panel): set ALPN to h3 when switching to Hysteria protocol #5593
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#5593
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/4076
Author: @Imgodmaoyouknow
Created: 4/22/2026
Status: ✅ Merged
Merged: 4/22/2026
Merged by: @MHSanaei
Base:
main← Head:main📝 Commits (1)
1becdeffix(panel): set ALPN to h3 when switching to Hysteria protocol📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
web/assets/js/model/inbound.js(+3 -1)📄 Description
What is the pull request?
This PR fixes a bug in the inbound configuration form where incompatible ALPN default values (
h2,http/1.1) are preserved when switching from TCP-based protocols (like VLESS/VMESS) to QUIC-based protocols (hysteria).The Issue
Currently, when a user selects
hysteria, the ALPN field incorrectly retains the default values['h2', 'http/1.1']. Since Hysteria is built on QUIC (UDP), passing TCP-based ALPNs causes an immediate ALPN mismatch during the TLS handshake.As a result, the Xray-core immediately rejects the client's connection request (sending back a 37-byte Connection Close frame), which leads to a frustrating
Timeouterror on clients like Clash Meta and v2rayN.Which part of the application is affected by the change?
Type of Changes
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.