From f0ac70c9956d093c03c830d42d6ddf565907ca1f Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Sat, 2 Mar 2024 23:47:56 +0800 Subject: [PATCH] =?UTF-8?q?[mio]=20=E4=BF=AE=E5=A4=8Drelay=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/channel/context.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/vnt/src/channel/context.rs b/vnt/src/channel/context.rs index f67c443..f2b2633 100644 --- a/vnt/src/channel/context.rs +++ b/vnt/src/channel/context.rs @@ -317,17 +317,12 @@ impl RouteTable { fn add_route_(&self, id: Ipv4Addr, route: Route, only_if_absent: bool) { // 限制通道类型 match self.use_channel_type { - UseChannelType::Relay => { - if route.metric < 2 { - return; - } - } UseChannelType::P2p => { if route.metric != 1 { return; } } - UseChannelType::All => {} + _ => {} } let key = route.route_key(); let mut route_table = self.route_table.write();