From 991e7557898e8fc297cc541f0b8ed50487117bf6 Mon Sep 17 00:00:00 2001 From: Mahdi <80265960+Mahdi-zarei@users.noreply.github.com> Date: Thu, 3 Apr 2025 11:40:43 +0330 Subject: [PATCH] Fix conn copy --- route/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/conn.go b/route/conn.go index 17218387..319e463c 100644 --- a/route/conn.go +++ b/route/conn.go @@ -246,7 +246,7 @@ func (m *ConnectionManager) connectionCopy(ctx context.Context, source net.Conn, return } } - _, err := bufio.CopyWithCounters(destination, sourceReader, source, readCounters, writeCounters) + _, err := bufio.CopyWithCounters(destinationWriter, sourceReader, source, readCounters, writeCounters) if err != nil { common.Close(source, destination) } else if duplexDst, isDuplex := destination.(N.WriteCloser); isDuplex {