diff options
author | warptangent <warptangent@inbox.com> | 2015-08-14 21:04:29 -0700 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-08-14 21:05:43 -0700 |
commit | 7424cfc7b806e95241960eca6fbc5d74aca85537 (patch) | |
tree | aa8bed6db0ea26e185d49731a160935a3daeafee | |
parent | Merge pull request #374 (diff) | |
download | monero-7424cfc7b806e95241960eca6fbc5d74aca85537.tar.xz |
net_node: Use DNS resolver singleton
Each thread can use the same resolver.
-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 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(); } |