From 1becdefa59a7ce2909ff9d64943d3c4b51a9fb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E5=8D=9A=E6=96=87?= <1027376923@qq.com> Date: Wed, 22 Apr 2026 10:55:47 +0800 Subject: [PATCH] fix(panel): set ALPN to h3 when switching to Hysteria protocol - Automatically explicitly set ALPN to ['h3'] for Hysteria to prevent QUIC handshake mismatch. --- web/assets/js/model/inbound.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 1cef368b..1dd4411f 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -1396,6 +1396,8 @@ class Inbound extends XrayCommonClass { if (protocol === Protocols.HYSTERIA) { this.stream.network = 'hysteria'; this.stream.security = 'tls'; + // Hysteria runs over QUIC and must not inherit TCP TLS ALPN defaults. + this.stream.tls.alpn = [ALPN_OPTION.H3]; } } @@ -2863,4 +2865,4 @@ Inbound.TunSettings = class extends Inbound.Settings { autoOutboundsInterface: this.autoOutboundsInterface, }; } -}; \ No newline at end of file +};