mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-26 17:36:15 +00:00
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.
This commit is contained in:
parent
814e6ad69c
commit
292eb992f4
1 changed files with 3 additions and 1 deletions
|
|
@ -1396,6 +1396,8 @@ class Inbound extends XrayCommonClass {
|
||||||
if (protocol === Protocols.HYSTERIA) {
|
if (protocol === Protocols.HYSTERIA) {
|
||||||
this.stream.network = 'hysteria';
|
this.stream.network = 'hysteria';
|
||||||
this.stream.security = 'tls';
|
this.stream.security = 'tls';
|
||||||
|
// Hysteria runs over QUIC and must not inherit TCP TLS ALPN defaults.
|
||||||
|
this.stream.tls.alpn = [ALPN_OPTION.H3];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue