mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
address filter cleanout during restart
This commit is contained in:
parent
23d160a525
commit
95bccaff46
@ -105,6 +105,8 @@ impl AddressFilter {
|
|||||||
// When the network restarts, some of the address filter can be cleared
|
// When the network restarts, some of the address filter can be cleared
|
||||||
pub fn restart(&self) {
|
pub fn restart(&self) {
|
||||||
let mut inner = self.inner.lock();
|
let mut inner = self.inner.lock();
|
||||||
|
inner.conn_count_by_ip4.clear();
|
||||||
|
inner.conn_count_by_ip6_prefix.clear();
|
||||||
inner.dial_info_failures.clear();
|
inner.dial_info_failures.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ impl RoutingTable {
|
|||||||
{
|
{
|
||||||
Ok(NodeContactMethod::Direct(v)) => v,
|
Ok(NodeContactMethod::Direct(v)) => v,
|
||||||
Ok(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
|
// let _ = routing_table
|
||||||
// .network_manager()
|
// .network_manager()
|
||||||
// .get_node_contact_method(nr.clone());
|
// .get_node_contact_method(nr.clone());
|
||||||
|
Loading…
Reference in New Issue
Block a user