From 2a62090b53022d9242ee745428c30d0190af408b Mon Sep 17 00:00:00 2001 From: alterdekim Date: Fri, 4 Oct 2024 23:03:39 +0300 Subject: [PATCH] modified: src/client.rs --- src/client.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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