From 49350933c31e2e8a784983cbc32042e9e292cf05 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Thu, 5 Jan 2023 11:44:38 +0800 Subject: [PATCH] Update heartbeat_handler.rs --- src/handle/heartbeat_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handle/heartbeat_handler.rs b/src/handle/heartbeat_handler.rs index 614ce5a..09721c8 100644 --- a/src/handle/heartbeat_handler.rs +++ b/src/handle/heartbeat_handler.rs @@ -36,7 +36,7 @@ pub fn handle_loop(udp: UdpSocket, server_addr: SocketAddr) -> Result<()> { let _ = udp.send_to(net_packet.buffer(), route.address); } else { DIRECT_ROUTE_TABLE.remove_if(&virtual_ip, |_, route| { - current_time - route.recv_time <= MAX_INTERVAL + current_time - route.recv_time > MAX_INTERVAL }); } }