From f104e191edd6fcaee5d6b5fec03ffb3e55e08e56 Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Sun, 30 Jul 2023 10:54:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Droute=20next=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/channel/channel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }