[PR #4076] [MERGED] fix(panel): set ALPN to h3 when switching to Hysteria protocol #5593

Closed
opened 2026-10-31 20:48:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 1becdef fix(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

  • Automatically explicitly set ALPN to ['h3'] for Hysteria to prevent QUIC handshake mismatch.

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 Timeout error on clients like Clash Meta and v2rayN.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/4076 **Author:** [@Imgodmaoyouknow](https://github.com/Imgodmaoyouknow) **Created:** 4/22/2026 **Status:** ✅ Merged **Merged:** 4/22/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`1becdef`](https://github.com/MHSanaei/3x-ui/commit/1becdefa59a7ce2909ff9d64943d3c4b51a9fb39) fix(panel): set ALPN to h3 when switching to Hysteria protocol ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/js/model/inbound.js` (+3 -1) </details> ### 📄 Description - Automatically explicitly set ALPN to ['h3'] for Hysteria to prevent QUIC handshake mismatch. ## What is the pull request? <!-- Briefly describe the changes introduced by this 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 `Timeout` error on clients like Clash Meta and v2rayN. ## Which part of the application is affected by the change? - [x] Frontend - [ ] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other ## Screenshots <!-- Add screenshots to illustrate the changes --> <!-- Remove this section if it is not applicable. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:03 +07:00
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#5593
No description provided.