mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-28 00:31:46 +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}
|
||||
|
||||
listener, err := tr.Listen(tlsConfig.GetTLSConfig(), quicConfig)
|
||||
listener, err := tr.Listen(tlsConfig.GetTLSConfig(tls.WithNextProto("h3")), quicConfig)
|
||||
if err != nil {
|
||||
_ = tr.Close()
|
||||
_ = pktConn.Close()
|
||||
|
||||
Reference in New Issue
Block a user