diff --git a/src/client.rs b/src/client.rs index 190602f..696a491 100644 --- a/src/client.rs +++ b/src/client.rs @@ -134,10 +134,11 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32) { } } }*/ - let mut buf = vec![0; 8192]; - while let Ok(n) = dev_reader.read(&mut buf) { - info!("Read from tun. {:?} bytes", n); + loop { + while let Ok(n) = dev_reader.read(&mut buf) { + info!("Read from tun. {:?} bytes", n); + } } info!("end."); } \ No newline at end of file