Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImgodmaoyouknow <55078436+Imgodmaoyouknow@users.noreply.github.com>2026-04-22 10:56:03 +0300
committerGitHub <noreply@github.com>2026-04-22 10:56:03 +0300
commit292eb992f46830ef03c54d280b2031f03fe2eb4f (patch)
tree1c225790813f00e52dbca14844782c0224ce66b0 /web/assets
parent814e6ad69cd92d77258d78bba232c3af0a4a3e68 (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.
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/inbound.js4
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
+};