From 54dd1546c6b8001ab93b78a43b6af0c160aeaf6e Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Fri, 5 Jul 2024 09:00:19 +0800 Subject: [PATCH] Cleanup unneeded deadline --- shadowaead/service_multi.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shadowaead/service_multi.go b/shadowaead/service_multi.go index cb73b7f..77166fc 100644 --- a/shadowaead/service_multi.go +++ b/shadowaead/service_multi.go @@ -10,7 +10,6 @@ import ( "github.com/sagernet/sing-shadowsocks" "github.com/sagernet/sing/common/auth" "github.com/sagernet/sing/common/buf" - "github.com/sagernet/sing/common/bufio/deadline" E "github.com/sagernet/sing/common/exceptions" M "github.com/sagernet/sing/common/metadata" N "github.com/sagernet/sing/common/network" @@ -126,11 +125,11 @@ func (s *MultiService[U]) newConnection(ctx context.Context, conn net.Conn, meta metadata.Protocol = "shadowsocks" metadata.Destination = destination - return s.handler.NewConnection(auth.ContextWithUser(ctx, user), deadline.NewConn(&serverConn{ + return s.handler.NewConnection(auth.ContextWithUser(ctx, user), &serverConn{ Method: method, Conn: conn, reader: reader, - }), metadata) + }, metadata) } func (s *MultiService[U]) WriteIsThreadUnsafe() {