mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 12:26:31 +02:00
p2p: don't lookup seed nodes when offline
This will cause DNS requests, which will block and timeout if there is really no network connectivity
This commit is contained in:
parent
cd776b1933
commit
19f8089fca
@ -502,7 +502,7 @@ namespace nodetool
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
memcpy(&m_network_id, &::config::NETWORK_ID, 16);
|
memcpy(&m_network_id, &::config::NETWORK_ID, 16);
|
||||||
if (m_exclusive_peers.empty())
|
if (m_exclusive_peers.empty() && !m_offline)
|
||||||
{
|
{
|
||||||
// for each hostname in the seed nodes list, attempt to DNS resolve and
|
// for each hostname in the seed nodes list, attempt to DNS resolve and
|
||||||
// add the result addresses as seed nodes
|
// add the result addresses as seed nodes
|
||||||
|
Loading…
Reference in New Issue
Block a user