diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-23 23:08:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-23 23:14:49 +0000 |
commit | 17b6bd6d357d66822335ef5c3563e670c23029e3 (patch) | |
tree | f03df947752e62ff86367e38aa91bb35875a85fc /src/wallet/api/utils.cpp | |
parent | Merge pull request #1346 (diff) | |
download | monero-17b6bd6d357d66822335ef5c3563e670c23029e3.tar.xz |
Fix DNS failures in offline mode preventing daemon startup
Diffstat (limited to 'src/wallet/api/utils.cpp')
-rw-r--r-- | src/wallet/api/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/utils.cpp b/src/wallet/api/utils.cpp index 1bf35197c..7de9d1927 100644 --- a/src/wallet/api/utils.cpp +++ b/src/wallet/api/utils.cpp @@ -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()) { |