From 6fb4ebba15d1e4d4bbf74fee67899e4913e9ac2b Mon Sep 17 00:00:00 2001 From: Larvan2 <78135608+Larvan2@users.noreply.github.com> 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