diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-23 23:08:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-23 23:14:49 +0000 |
commit | 17b6bd6d357d66822335ef5c3563e670c23029e3 (patch) | |
tree | f03df947752e62ff86367e38aa91bb35875a85fc /src/p2p | |
parent | Merge pull request #1346 (diff) | |
download | monero-17b6bd6d357d66822335ef5c3563e670c23029e3.tar.xz |
Fix DNS failures in offline mode preventing daemon startup
Diffstat (limited to 'src/p2p')
-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 d8dadae1f..b5bfc2979 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -339,7 +339,7 @@ namespace nodetool io_service io_srv; ip::tcp::resolver resolver(io_srv); - ip::tcp::resolver::query query(host, port); + ip::tcp::resolver::query query(host, port, boost::asio::ip::tcp::resolver::query::canonical_name); boost::system::error_code ec; ip::tcp::resolver::iterator i = resolver.resolve(query, ec); CHECK_AND_ASSERT_MES_NO_RET(!ec, "Failed to resolve host name '" << host << "': " << ec.message() << ':' << ec.value()); |