Skip to content

Commit

Permalink
update address on new peer (#3607)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron authored Aug 23, 2024
1 parent edebf50 commit ef49983
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/libp2p-networking/src/network/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,12 @@ impl<K: SignatureKey + 'static> NetworkNode<K> {
.dht
.add_address(&my_id, address.clone());
}
SwarmEvent::NewExternalAddrOfPeer { peer_id, address } => {
self.swarm
.behaviour_mut()
.dht
.add_address(&peer_id, address.clone());
}
_ => {
debug!("Unhandled swarm event {:?}", event);
}
Expand Down

0 comments on commit ef49983

Please sign in to comment.