diff options
| author | Imgodmaoyouknow <55078436+Imgodmaoyouknow@users.noreply.github.com> | 2026-04-22 10:56:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-22 10:56:03 +0300 |
| commit | 292eb992f46830ef03c54d280b2031f03fe2eb4f (patch) | |
| tree | 1c225790813f00e52dbca14844782c0224ce66b0 | |
| parent | 814e6ad69cd92d77258d78bba232c3af0a4a3e68 (diff) | |
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.
| -rw-r--r-- | web/assets/js/model/inbound.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 +}; |
