aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-01 17:37:00 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-01 17:37:01 +0200
commit6e0242f86140af1de634332d1339a8d8799ee958 (patch)
treeaedcb0e6db68a8fddf1beb67833a13aaf1b9a8e7 /src/p2p/net_node.inl
parentMerge pull request #5333 (diff)
parentp2p: don't lookup seed nodes when offline (diff)
downloadmonero-6e0242f86140af1de634332d1339a8d8799ee958.tar.xz
Merge pull request #5334
19f8089f p2p: don't lookup seed nodes when offline (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.inl')
-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 565fcf0ea..f0aef384f 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