diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-10 13:11:42 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-10 13:11:42 +0100 |
commit | 054054c92f5d6fe6c598a31c64c215485a7f4995 (patch) | |
tree | c3126ca3ae2d497cc2ce53647f172a1e9acccf2d /src | |
parent | Merge pull request #2384 (diff) | |
download | monero-054054c92f5d6fe6c598a31c64c215485a7f4995.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/p2p/net_node.inl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 889cfaf9d..57009f669 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -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)) { |