From 04134e808776fef03f46e56272f8043b673eac47 Mon Sep 17 00:00:00 2001 From: flswld Date: Sun, 6 Aug 2023 01:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96kcp=E5=BA=93=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gate/kcp/session.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gate/kcp/session.go b/gate/kcp/session.go index 0cd62718..e33238b0 100644 --- a/gate/kcp/session.go +++ b/gate/kcp/session.go @@ -936,6 +936,10 @@ func DialWithOptions(raddr string) (*UDPSession, error) { if err != nil { return nil, err } + err = conn.SetReadDeadline(time.Time{}) + if err != nil { + return nil, err + } if addr.String() != udpaddr.String() { return nil, errors.New("recv packet remote addr not match") }