aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-11-24 13:01:35 +0200
committerRiccardo Spagni <ric@spagni.net>2016-11-24 13:01:35 +0200
commitc36cb5434059ed53daf947b189343ac0bd8f31d8 (patch)
treebc2033d9617766983588fc435ea86b522170671d /src/p2p/net_node.inl
parentMerge pull request #1371 (diff)
parentFix DNS failures in offline mode preventing daemon startup (diff)
downloadmonero-c36cb5434059ed53daf947b189343ac0bd8f31d8.tar.xz
Merge pull request #1372
17b6bd6 Fix DNS failures in offline mode preventing daemon startup (moneromooo-monero)
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 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());