Hysteria server: tls.WithNextProto("h3") by default (#6186)

Client: https://github.com/XTLS/Xray-core/pull/6186#issuecomment-4528041838
This commit is contained in:
风扇滑翔翼
2026-05-24 22:20:53 +08:00
committed by RPRX
parent d878fc83f8
commit 787aa7677b
+1 -1
View File
@@ -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()