diff --git a/src/tun2proxy.rs b/src/tun2proxy.rs index 2b61086..7b5ed9d 100644 --- a/src/tun2proxy.rs +++ b/src/tun2proxy.rs @@ -792,8 +792,8 @@ impl<'a> TunToProxy<'a> { #[cfg(any(target_os = "ios", target_os = "macos", target_os = "windows"))] let mut socket = tcp::Socket::new( // TODO: Look into how the buffer size affects IP header length and fragmentation - tcp::SocketBuffer::new(vec![0; 1024]), - tcp::SocketBuffer::new(vec![0; 1024]), + tcp::SocketBuffer::new(vec![0; 1024 * 2]), + tcp::SocketBuffer::new(vec![0; 1024 * 2]), ); socket.set_ack_delay(None); socket.listen(dst)?;