瀏覽代碼

Fix conn copy

Mahdi 6 月之前
父節點
當前提交
991e755789
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      route/conn.go

+ 1 - 1
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 {