Skip to content

Commit

Permalink
chore(network): disable adding relay candidates for clients
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Jun 18, 2024
1 parent 22ae114 commit 8811952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sn_networking/src/event/swarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl SwarmDriver {
.any(|(_ilog2, peers)| peers.contains(&peer_id));

// Do not use an `already relayed` peer as `potential relay candidate`.
if !has_relayed && !is_bootstrap_peer {
if !has_relayed && !is_bootstrap_peer && !self.is_client {
debug!("Adding candidate relay server {peer_id:?}, it's not a bootstrap node");
self.relay_manager.add_potential_candidates(
&peer_id,
Expand Down

0 comments on commit 8811952

Please sign in to comment.