ソースを参照

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.
Imgodmaoyouknow 3 日 前
コミット
292eb992f4
1 ファイル変更3 行追加1 行削除
  1. 3 1
      web/assets/js/model/inbound.js

+ 3 - 1
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,
         };
     }
-};
+};