Skip to content

Commit

Permalink
Add print to show we are actually doing something
Browse files Browse the repository at this point in the history
  • Loading branch information
Mac898 committed Apr 5, 2024
1 parent e87b2c9 commit 816b9a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .idea/MMP.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ async fn handle_client_conn(mut client: TcpStream, pool: Pool, default_server: S
server_send.write_all(&second_stage_buffer).await?;
}

// Print to the console what we are doing
println!("Connecting {} with version {} to {}", client_recv.peer_addr()?, protocol_version, server_recv.peer_addr()?);

// Spawn two tasks to handle bidirectional data transfer between client and target
let client_to_server = io::copy(&mut client_recv, &mut server_send);
let server_to_client = io::copy(&mut server_recv, &mut client_send);
Expand Down

0 comments on commit 816b9a3

Please sign in to comment.