Skip to content

Commit 541d859

Browse files
authored
Merge pull request #4164 from ProvableHQ/fix/correct_bootstrapper_resolution
[Fix] Use the correct address to resolve peers as a BootstrapClient
2 parents af03289 + 12ffbcb commit 541d859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/src/bootstrap_client/handshake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl<N: Network> BootstrapClient<N> {
200200
*listener_addr = Some(SocketAddr::new(peer_addr.ip(), peer_port));
201201

202202
// Introduce the peer into the peer pool.
203-
self.add_connecting_peer(peer_addr)?;
203+
self.add_connecting_peer(listener_addr.unwrap())?;
204204

205205
// Verify the challenge request.
206206
if !self.verify_challenge_request(peer_addr, &mut framed, &peer_request).await? {

0 commit comments

Comments
 (0)