diff --git a/src/client.rs b/src/client.rs index f1145a7..f923e2b 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(format!("Read from tun. {:?}", hex::encode(buf[..n])).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(); } }