[mio] 兼容padavan路由器找不到程序当前路径的问题

This commit is contained in:
lubeilin
2024-03-03 09:45:52 +08:00
parent 1eb2a0f5cf
commit 521280537a
3 changed files with 34 additions and 22 deletions
+3 -1
View File
@@ -89,7 +89,9 @@ impl<Call: VntCallback> PacketHandler for ServerPacketHandler<Call> {
context: &Context,
current_device: &CurrentDeviceInfo,
) -> io::Result<()> {
context.route_table.update_read_time(&net_packet.source(), &route_key);
context
.route_table
.update_read_time(&net_packet.source(), &route_key);
if net_packet.protocol() == Protocol::Error
&& net_packet.transport_protocol()
== crate::protocol::error_packet::Protocol::NoKey.into()