fix peer establish direct conn with subnet proxy to one of local interface (#1782)

* fix peer establish direct conn with subnet proxy to one of local interface

* fix peer mgr ref loop
This commit is contained in:
KKRainbow
2026-01-15 01:00:32 +08:00
committed by GitHub
parent f8b34e3c86
commit 53264f67bf
21 changed files with 354 additions and 170 deletions
+1 -1
View File
@@ -547,7 +547,7 @@ impl UdpHolePunchConnector {
.rpc_server()
.registry()
.register(
UdpHolePunchRpcServer::new(self.server.clone()),
UdpHolePunchRpcServer::new(Arc::downgrade(&self.server)),
&self.peer_mgr.get_global_ctx().get_network_name(),
);