diff --git a/src/client.rs b/src/client.rs index c10f7e1..091977c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -48,7 +48,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, close_toke let mut buf = vec![0; 1400]; // mtu loop { if let Ok(n) = dev_reader.read(&mut buf).await { - info!("Read from tun. {:?}", hex::encode(&buf[..n])); + info!("Read from tun."); // hex::encode(&buf[..n]) dx.send(buf[..n].to_vec()).unwrap(); } } @@ -117,6 +117,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, close_toke loop { tokio::select! { _ = close_token.cancelled() => { + info!("Cancellation token has been thrown"); sock_read_task.abort(); dev_read_task.abort(); break;