Merge pull request #1031

0d7ce00 epee: do not try network resolution if loopback worked (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2016-09-01 20:02:31 +02:00
commit 9c709bec19
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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)