mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-08 14:36:13 +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:
@@ -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,
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user