chore: Allow 0-RTT in Tuic server

refers to: https://github.com/quic-go/quic-go/pull/3635
This commit is contained in:
Larvan2 2023-02-13 23:51:39 +08:00
parent d00d83abd4
commit 6fb4ebba15

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