mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-13 21:27:25 +08:00
allow peer rpc split packet, so tunnel mtu can be small (#116)
This commit is contained in:
@@ -146,7 +146,7 @@ where
|
||||
reserve_buf(
|
||||
&mut self_mut.buf,
|
||||
*self_mut.max_packet_size,
|
||||
*self_mut.max_packet_size * 64,
|
||||
*self_mut.max_packet_size * 32,
|
||||
);
|
||||
|
||||
let cap = self_mut.buf.capacity() - self_mut.buf.len();
|
||||
|
||||
Reference in New Issue
Block a user