From 19f8089fca4b62eb729ade037c84ff26adc3924a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 22 Mar 2019 13:25:54 +0000 Subject: 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 --- src/p2p/net_node.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index ba6e79d3f..b99279bfa 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -502,7 +502,7 @@ namespace nodetool else { 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 // add the result addresses as seed nodes -- cgit v1.2.3