From f298650ffa913df1a14314293046a514663bc5db Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 11 Mar 2023 12:35:24 -0500 Subject: [PATCH] fix --- .../route_spec_store/route_set_spec_detail.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/veilid-core/src/routing_table/route_spec_store/route_set_spec_detail.rs b/veilid-core/src/routing_table/route_spec_store/route_set_spec_detail.rs index 9a95e4af..78488403 100644 --- a/veilid-core/src/routing_table/route_spec_store/route_set_spec_detail.rs +++ b/veilid-core/src/routing_table/route_spec_store/route_set_spec_detail.rs @@ -115,9 +115,11 @@ impl RouteSetSpecDetail { } } pub fn contains_nodes(&self, nodes: &[TypedKey]) -> bool { - for h in &self.hop_node_refs { - if h.node_ids().contains_any(nodes) { - return true; + for tk in nodes { + for (_pk, rsd) in &self.route_set { + if rsd.crypto_kind == tk.kind && rsd.hops.contains(&tk.value) { + return true; + } } } false