From 292eb992f46830ef03c54d280b2031f03fe2eb4f Mon Sep 17 00:00:00 2001 From: Imgodmaoyouknow <55078436+Imgodmaoyouknow@users.noreply.github.com> Date: Wed, 22 Apr 2026 15:56:03 +0800 Subject: [PATCH] fix(panel): set ALPN to h3 when switching to Hysteria protocol (#4076) - 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 +};