mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
p2p: do not try to connect to peers in offline mode
This commit is contained in:
parent
ed67e5c001
commit
2e584dcb1f
1 changed files with 2 additions and 0 deletions
|
@ -1151,6 +1151,7 @@ namespace nodetool
|
|||
template<class t_payload_net_handler>
|
||||
bool node_server<t_payload_net_handler>::connections_maker()
|
||||
{
|
||||
if (m_offline) return true;
|
||||
if (!connect_to_peerlist(m_exclusive_peers)) return false;
|
||||
|
||||
if (!m_exclusive_peers.empty()) return true;
|
||||
|
@ -1884,6 +1885,7 @@ namespace nodetool
|
|||
template<class t_payload_net_handler>
|
||||
bool node_server<t_payload_net_handler>::gray_peerlist_housekeeping()
|
||||
{
|
||||
if (m_offline) return true;
|
||||
if (!m_exclusive_peers.empty()) return true;
|
||||
|
||||
peerlist_entry pe = AUTO_VAL_INIT(pe);
|
||||
|
|
Loading…
Reference in a new issue