aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-22 13:25:54 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-22 15:47:48 +0000
commit19f8089fca4b62eb729ade037c84ff26adc3924a (patch)
treebb8cb846e7d40b921beff9bba7a13f39ee58b0a3 /src/p2p/net_node.inl
parentMerge pull request #5267 (diff)
downloadmonero-19f8089fca4b62eb729ade037c84ff26adc3924a.tar.xz
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
Diffstat (limited to '')
-rw-r--r--src/p2p/net_node.inl2
1 files changed, 1 insertions, 1 deletions
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