From 4a70fb61f95af037dfbfef1b46d867597fb2bc51 Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Fri, 1 Aug 2025 19:35:09 +0200 Subject: [PATCH] another off by one error --- src/client/tun.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/tun.rs b/src/client/tun.rs index 175e5d7..0a014c4 100644 --- a/src/client/tun.rs +++ b/src/client/tun.rs @@ -37,7 +37,7 @@ pub fn read_tun_iface( loop { let data_lenght = tun_iface.recv(&mut buf).unwrap(); // build in auto termination, isn't it great smol::spawn(handle_ip_packet( - buf[..data_lenght - 1].to_vec().into(), + buf[..data_lenght].to_vec().into(), network.clone(), socket.clone(), ))