From 787aa7677b47c24f19aae84111d50ef4123072be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Sun, 24 May 2026 22:20:53 +0800 Subject: [PATCH] Hysteria server: `tls.WithNextProto("h3")` by default (#6186) Client: https://github.com/XTLS/Xray-core/pull/6186#issuecomment-4528041838 --- 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 17088938..d20313b5 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()