mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-30 18:28:48 -04:00
fix
This commit is contained in:
parent
e52b5f60cd
commit
f298650ffa
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue