mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
fix: cover all pex disabled cases in get_peer_candidate() (#5806)
This commit is contained in:
@@ -2321,10 +2321,10 @@ struct peer_candidate
|
||||
continue;
|
||||
}
|
||||
|
||||
/* if everyone in the swarm is seeds and pex is disabled because
|
||||
* the torrent is private, then don't initiate connections */
|
||||
/* if everyone in the swarm is seeds and pex is disabled,
|
||||
* then don't initiate connections */
|
||||
bool const seeding = tor->is_done();
|
||||
if (seeding && swarm->is_all_seeds() && tor->is_private())
|
||||
if (seeding && swarm->is_all_seeds() && !tor->allows_pex())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user