fix dead loop in direct connecto if disable-p2p is enabled in dst (#1206)

This commit is contained in:
Sijie.Sun
2025-08-08 22:30:39 +08:00
committed by GitHub
parent 6d14e9e441
commit efa17a7c10
5 changed files with 25 additions and 17 deletions
@@ -154,7 +154,7 @@ impl PunchConeHoleClient {
)
.await;
let resp = handle_rpc_result(resp, dst_peer_id, self.blacklist.clone())?;
let resp = handle_rpc_result(resp, dst_peer_id, &self.blacklist)?;
let remote_mapped_addr = resp.listener_mapped_addr.ok_or(anyhow::anyhow!(
"select_punch_listener response missing listener_mapped_addr"