diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-01 18:12:39 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-01 18:12:39 +0100 |
commit | 0d7ce00793a5e6b9f20f7e6f09313f0240800674 (patch) | |
tree | de1fbc06c3d3ee1ecc8b0893947ecdfe695b92e7 /contrib/epee/include/net | |
parent | Merge pull request #1022 (diff) | |
download | monero-0d7ce00793a5e6b9f20f7e6f09313f0240800674.tar.xz |
epee: do not try network resolution if loopback worked
Fixes the wallet being unable to connect to the daemon
when there is no NIC.
Diffstat (limited to 'contrib/epee/include/net')
-rw-r--r-- | contrib/epee/include/net/net_helper.h | 2 |
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) |