mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-03 10:18:42 +00:00
Hysteria server: tls.WithNextProto("h3") by default (#6186)
Client: https://github.com/XTLS/Xray-core/pull/6186#issuecomment-4528041838
This commit is contained in:
@@ -309,7 +309,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
|
|||||||
|
|
||||||
tr := &quic.Transport{Conn: pktConn}
|
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 {
|
if err != nil {
|
||||||
_ = tr.Close()
|
_ = tr.Close()
|
||||||
_ = pktConn.Close()
|
_ = pktConn.Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user