Skip to content

Commit

Permalink
修复route next显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Jul 30, 2023
1 parent 6311d75 commit f104e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnt/src/channel/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit f104e19

Please sign in to comment.