diff --git a/vnt/src/channel/channel.rs b/vnt/src/channel/channel.rs index 4dc9898..30751ed 100644 --- a/vnt/src/channel/channel.rs +++ b/vnt/src/channel/channel.rs @@ -259,7 +259,7 @@ impl Context { pub fn route_to_id(&self, route_key: &RouteKey) -> Option { for x in self.inner.route_table.iter() { for route in x.value() { - if &route.route_key() == route_key { + if &route.route_key() == route_key && route.is_p2p() { return Some(*x.key()); } }