From 7d50bea4d2971cadec7af8b8c41e7c492b43823d Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 13 Feb 2023 23:51:39 +0800 Subject: [PATCH] chore: Allow 0-RTT in Tuic server refers to: https://github.com/quic-go/quic-go/pull/3635 --- listener/tuic/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/listener/tuic/server.go b/listener/tuic/server.go index 724d7418..a7ad69f6 100644 --- a/listener/tuic/server.go +++ b/listener/tuic/server.go @@ -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