mirror of
https://github.com/monero-project/monero.git
synced 2025-08-03 02:36:15 -04:00
Fix DNS failures in offline mode preventing daemon startup
This commit is contained in:
parent
dbf2ab56c5
commit
17b6bd6d35
3 changed files with 5 additions and 5 deletions
|
@ -61,7 +61,7 @@ bool isAddressLocal(const std::string &address)
|
|||
// resolve to IP
|
||||
boost::asio::io_service io_service;
|
||||
boost::asio::ip::tcp::resolver resolver(io_service);
|
||||
boost::asio::ip::tcp::resolver::query query(u_c.host, "");
|
||||
boost::asio::ip::tcp::resolver::query query(u_c.host, "", boost::asio::ip::tcp::resolver::query::canonical_name);
|
||||
boost::asio::ip::tcp::resolver::iterator i = resolver.resolve(query);
|
||||
while (i != boost::asio::ip::tcp::resolver::iterator())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue