mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-27 09:16:04 +00:00
Buffer size
This commit is contained in:
parent
be0652ce4c
commit
67a3242b88
1 changed files with 2 additions and 2 deletions
|
@ -792,8 +792,8 @@ impl<'a> TunToProxy<'a> {
|
||||||
#[cfg(any(target_os = "ios", target_os = "macos", target_os = "windows"))]
|
#[cfg(any(target_os = "ios", target_os = "macos", target_os = "windows"))]
|
||||||
let mut socket = tcp::Socket::new(
|
let mut socket = tcp::Socket::new(
|
||||||
// TODO: Look into how the buffer size affects IP header length and fragmentation
|
// 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 * 2]),
|
||||||
tcp::SocketBuffer::new(vec![0; 1024]),
|
tcp::SocketBuffer::new(vec![0; 1024 * 2]),
|
||||||
);
|
);
|
||||||
socket.set_ack_delay(None);
|
socket.set_ack_delay(None);
|
||||||
socket.listen(dst)?;
|
socket.listen(dst)?;
|
||||||
|
|
Loading…
Add table
Reference in a new issue