From 97b5fad9f10b4b9c74c59d1e7c9c78e7decf3680 Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 29 Jun 2022 15:24:04 -0400 Subject: [PATCH] bootstrap work --- veilid-core/src/routing_table/tasks.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/veilid-core/src/routing_table/tasks.rs b/veilid-core/src/routing_table/tasks.rs index a101f4bc..1671498b 100644 --- a/veilid-core/src/routing_table/tasks.rs +++ b/veilid-core/src/routing_table/tasks.rs @@ -250,11 +250,13 @@ impl RoutingTable { log_rtab!(debug "--- bootstrap_task"); // See if we are specifying a direct dialinfo for bootstrap, if so use the direct mechanism - if !bootstrap_nodes.is_empty() { + if !bootstrap.is_empty() && bootstrap_nodes.is_empty() { let mut bootstrap_dialinfos = Vec::::new(); for b in &bootstrap { - if let Ok(bootstrap_di) = DialInfo::from_str(&b) { - bootstrap_dialinfos.push(bootstrap_di); + if let Ok(bootstrap_di_vec) = DialInfo::try_vec_from_url(&b) { + for bootstrap_di in bootstrap_di_vec { + bootstrap_dialinfos.push(bootstrap_di); + } } } if bootstrap_dialinfos.len() > 0 {