mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-14 13:47:24 +08:00
fix ospf route (#970)
- **fix deadlock in ospf route introducd by #958 ** - **use random peer id for foreign network entry, because ospf route algo need peer id change after peer info version reset. this may interfere route propagation and cause node residual** - **allow multiple nodes broadcast same network ranges for subnet proxy** - **bump version to v2.3.2**
This commit is contained in:
@@ -887,11 +887,17 @@ pub async fn manual_reconnector(#[values(true, false)] is_foreign: bool) {
|
||||
.get_foreign_network_client()
|
||||
.get_peer_map()
|
||||
};
|
||||
let center_inst_peer_id = if !is_foreign {
|
||||
center_inst.peer_id()
|
||||
} else {
|
||||
center_inst
|
||||
.get_peer_manager()
|
||||
.get_foreign_network_manager()
|
||||
.get_network_peer_id(&inst1.get_global_ctx().get_network_identity().network_name)
|
||||
.unwrap()
|
||||
};
|
||||
|
||||
let conns = peer_map
|
||||
.list_peer_conns(center_inst.peer_id())
|
||||
.await
|
||||
.unwrap();
|
||||
let conns = peer_map.list_peer_conns(center_inst_peer_id).await.unwrap();
|
||||
|
||||
assert!(conns.len() >= 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user