p2p: disable gray list housekeeping when an exclusive node is given

Exclusive nodes may be used for privacy reasons, and thus we don't
want to connect to other nodes, even for checking connectivity.

See https://github.com/monero-project/monero/issues/2346
This commit is contained in:
moneromooo-monero 2017-09-10 13:11:42 +01:00
parent 02e5dcd2fa
commit 054054c92f
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -1951,6 +1951,8 @@ namespace nodetool
template<class t_payload_net_handler>
bool node_server<t_payload_net_handler>::gray_peerlist_housekeeping()
{
if (!m_exclusive_peers.empty()) return true;
peerlist_entry pe = AUTO_VAL_INIT(pe);
if (!m_peerlist.get_random_gray_peer(pe)) {