From 95bccaff46cd9af06466d8218de03b38ca936a44 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Tue, 21 May 2024 14:57:34 -0400 Subject: [PATCH] address filter cleanout during restart --- veilid-core/src/network_manager/address_filter.rs | 2 ++ veilid-core/src/routing_table/tasks/bootstrap.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/veilid-core/src/network_manager/address_filter.rs b/veilid-core/src/network_manager/address_filter.rs index b39dde90..f2b3c3dd 100644 --- a/veilid-core/src/network_manager/address_filter.rs +++ b/veilid-core/src/network_manager/address_filter.rs @@ -105,6 +105,8 @@ impl AddressFilter { // When the network restarts, some of the address filter can be cleared pub fn restart(&self) { let mut inner = self.inner.lock(); + inner.conn_count_by_ip4.clear(); + inner.conn_count_by_ip6_prefix.clear(); inner.dial_info_failures.clear(); } diff --git a/veilid-core/src/routing_table/tasks/bootstrap.rs b/veilid-core/src/routing_table/tasks/bootstrap.rs index 4b1ce1cd..64f5a53c 100644 --- a/veilid-core/src/routing_table/tasks/bootstrap.rs +++ b/veilid-core/src/routing_table/tasks/bootstrap.rs @@ -286,7 +286,7 @@ impl RoutingTable { { Ok(NodeContactMethod::Direct(v)) => v, Ok(v) => { - log_rtab!(warn "invalid contact method for bootstrap, ignoring peer: {:?}", v); + log_rtab!(debug "invalid contact method for bootstrap, ignoring peer: {:?}", v); // let _ = routing_table // .network_manager() // .get_node_contact_method(nr.clone());