diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-22 13:25:54 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-22 15:47:48 +0000 |
commit | 19f8089fca4b62eb729ade037c84ff26adc3924a (patch) | |
tree | bb8cb846e7d40b921beff9bba7a13f39ee58b0a3 | |
parent | Merge pull request #5267 (diff) | |
download | monero-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
-rw-r--r-- | src/p2p/net_node.inl | 2 |
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 |