增加转发日志

This commit is contained in:
lbl8603
2024-04-21 18:30:33 +08:00
parent 137efe20b8
commit 5bdc514606
+2 -2
View File
@@ -33,12 +33,12 @@ impl PacketHandler for TurnPacketHandler {
return Ok(()); return Ok(());
} }
if route.metric <= ttl { if route.metric <= ttl {
context.send_by_key(net_packet.buffer(), route.route_key())?; return context.send_by_key(net_packet.buffer(), route.route_key());
} }
} }
//其他没有路由的不转发 //其他没有路由的不转发
} }
log::info!("没有路由 {:?},{:?}", route_key, net_packet.head());
Ok(()) Ok(())
} }
} }