mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-16 14:47:25 +08:00
some minor fix (#113)
1. fix ospf route panic if no ipv4 assigned. 2. should refetch global peer latency map every 60s 3. remove regex dep because it's too large and unnecessary.
This commit is contained in:
@@ -537,6 +537,10 @@ impl RouteTable {
|
||||
self.peer_infos.insert(*peer_id, info.clone());
|
||||
}
|
||||
|
||||
if self.peer_infos.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
// build next hop map
|
||||
self.next_hop_map.clear();
|
||||
self.next_hop_map.insert(my_peer_id, (my_peer_id, 0));
|
||||
|
||||
Reference in New Issue
Block a user