aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-01 20:02:31 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-01 20:02:31 +0200
commit9c709bec19f8351c49c5bbffe90189c8d58f3cc9 (patch)
treecf968645839f5ebaeb62654cea9a6135c36aed43
parentMerge pull request #1010 (diff)
parentepee: do not try network resolution if loopback worked (diff)
downloadmonero-9c709bec19f8351c49c5bbffe90189c8d58f3cc9.tar.xz
Merge pull request #1031
0d7ce00 epee: do not try network resolution if loopback worked (moneromooo-monero)
-rw-r--r--contrib/epee/include/net/net_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/net_helper.h b/contrib/epee/include/net/net_helper.h
index 4f7ebfa04..a0ade10a3 100644
--- a/contrib/epee/include/net/net_helper.h
+++ b/contrib/epee/include/net/net_helper.h
@@ -137,7 +137,7 @@ namespace net_utils
//////////////////////////////////////////////////////////////////////////
boost::asio::ip::tcp::resolver resolver(m_io_service);
- boost::asio::ip::tcp::resolver::query query(boost::asio::ip::tcp::v4(), addr, port);
+ boost::asio::ip::tcp::resolver::query query(boost::asio::ip::tcp::v4(), addr, port, boost::asio::ip::tcp::resolver::query::canonical_name);
boost::asio::ip::tcp::resolver::iterator iterator = resolver.resolve(query);
boost::asio::ip::tcp::resolver::iterator end;
if(iterator == end)