From 7106d8c711468e1b53109cc75d598c1ae503f6fd Mon Sep 17 00:00:00 2001 From: Fangliding Date: Sun, 24 May 2026 17:59:56 +0800 Subject: [PATCH] Hysteria: Set default h3 alpn --- transport/internet/hysteria/hub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/hysteria/hub.go b/transport/internet/hysteria/hub.go index 17088938f..d20313b5d 100644 --- a/transport/internet/hysteria/hub.go +++ b/transport/internet/hysteria/hub.go @@ -309,7 +309,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti tr := &quic.Transport{Conn: pktConn} - listener, err := tr.Listen(tlsConfig.GetTLSConfig(), quicConfig) + listener, err := tr.Listen(tlsConfig.GetTLSConfig(tls.WithNextProto("h3")), quicConfig) if err != nil { _ = tr.Close() _ = pktConn.Close()