aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-08-14 21:04:29 -0700
committerwarptangent <warptangent@inbox.com>2015-08-14 21:05:43 -0700
commit7424cfc7b806e95241960eca6fbc5d74aca85537 (patch)
treeaa8bed6db0ea26e185d49731a160935a3daeafee /src/p2p/net_node.inl
parentMerge pull request #374 (diff)
downloadmonero-7424cfc7b806e95241960eca6fbc5d74aca85537.tar.xz
net_node: Use DNS resolver singleton
Each thread can use the same resolver.
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 7360adc3c..0561ac584 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -321,7 +321,7 @@ namespace nodetool
try
{
- addr_list = tools::DNSResolver().get_ipv4(addr_str, avail, valid);
+ addr_list = tools::DNSResolver::instance().get_ipv4(addr_str, avail, valid);
LOG_PRINT_L4("dns_threads[" << result_index << "] DNS resolve done");
boost::this_thread::interruption_point();
}