aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index d357050..b13cf5f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,7 +25,7 @@ where
fn tun2ppp(clt: Client, tun: Arc<Iface>) -> Result<()> {
loop {
- let mut buf = [0; 1504];
+ let mut buf = [0; 4 + 1492];
let n = tun.recv(&mut buf)?;
let buf = &buf[..n];