chore: Allow 0-RTT in Tuic server

refers to: https://github.com/quic-go/quic-go/pull/3635
This commit is contained in:
gVisor bot 2023-02-13 23:51:39 +08:00
parent 100f193a6a
commit 7d50bea4d2

View file

@ -52,6 +52,9 @@ func New(config LC.TuicServer, tcpIn chan<- C.ConnContext, udpIn chan<- C.Packet
MaxIncomingStreams: ServerMaxIncomingStreams,
MaxIncomingUniStreams: ServerMaxIncomingStreams,
EnableDatagrams: true,
Allow0RTT: func(addr net.Addr) bool {
return true
},
}
quicConfig.InitialStreamReceiveWindow = tuic.DefaultStreamReceiveWindow / 10
quicConfig.MaxStreamReceiveWindow = tuic.DefaultStreamReceiveWindow