This commit is contained in:
asxalex 2025-02-05 16:19:37 +08:00
parent 4fdcfa5bee
commit 4aa33a4e26
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ async fn main() {
_allow_routing: true,
_drop_multicast: true,
register_ttl: 1,
mtu: 1290,
mtu: 1400,
name: "tau".to_owned(),
tos: 0,
local_port: cmd.port,

View File

@ -555,7 +555,7 @@ async fn loop_tap(eee: &'static Node, cancel: CancellationToken) {
async fn get_tun_flow(eee: &'static Node, tx: Sender<Vec<u8>>) {
loop {
let buf = tokio::task::spawn_blocking(|| {
let mut buf = vec![0; 1800];
let mut buf = vec![0; 1500];
let Ok(size) = eee.device.recv(&mut buf) else {
return vec![];
};