diff --git a/src/tcp_client.rs b/src/tcp_client.rs index fe88f32..e4b3926 100644 --- a/src/tcp_client.rs +++ b/src/tcp_client.rs @@ -102,7 +102,7 @@ pub async fn client_mode(remote_addr: String) { let mut buf = vec![0; 4096]; loop { if let Ok(n) = sock_reader.read(&mut buf).await { - //info!("Catch from socket: {:?}", &buf[..n]); + info!("Catch from socket"); match bincode::deserialize::(&buf[..n]) { Ok(vpn_packet) => tx.send(vpn_packet.data).unwrap(), Err(error) => error!("Deserialization error {:?}", error), diff --git a/src/tcp_server.rs b/src/tcp_server.rs index 3b16ab8..2abb1b9 100644 --- a/src/tcp_server.rs +++ b/src/tcp_server.rs @@ -87,7 +87,8 @@ pub async fn server_mode(bind_addr: String) { tokio::spawn(async move { while let Ok(mut bytes) = rx.recv() { - info!("Source ip: {:?}", &bytes[12..=15]); + info!("Got packet"); + //info!("Source ip: {:?}", &bytes[12..=15]); //bytes[12] = 192; //bytes[13] = 168; //bytes[14] = 0;