From 3c7b1398cea898a2626ac57d4becc027ad38cd5d Mon Sep 17 00:00:00 2001 From: alterdekim Date: Tue, 8 Oct 2024 02:47:13 +0300 Subject: [PATCH] modified: src/client.rs --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index f1bf400..f1145a7 100644 --- a/src/client.rs +++ b/src/client.rs @@ -59,7 +59,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE let mut buf = vec![0; 1400]; // mtu loop { if let Ok(n) = dev_reader.read(&mut buf) { - llltx.send("Read from tun.".as_bytes().to_vec()); + llltx.send(format!("Read from tun. {:?}", hex::encode(buf[..n])).as_bytes().to_vec()); dx.send(buf[..n].to_vec()).unwrap(); } }