修复route next显示问题

This commit is contained in:
lubeilin
2023-07-30 10:54:37 +08:00
parent 6311d75ac0
commit f104e191ed
+1 -1
View File
@@ -259,7 +259,7 @@ impl Context {
pub fn route_to_id(&self, route_key: &RouteKey) -> Option<Ipv4Addr> {
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());
}
}