aboutsummaryrefslogtreecommitdiff
path: root/src/common/dns_utils.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-01 22:17:34 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-01 22:53:48 +0000
commit71eb32a976512b294e077861a3123842e20611b6 (patch)
tree1feb0b69e8ff940c12335520bff54c1adee13c93 /src/common/dns_utils.h
parentMerge pull request #4721 (diff)
downloadmonero-71eb32a976512b294e077861a3123842e20611b6.tar.xz
dns_utils: do not exit if DNS records are corrupt
Diffstat (limited to 'src/common/dns_utils.h')
-rw-r--r--src/common/dns_utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/dns_utils.h b/src/common/dns_utils.h
index f46bca3dd..3a6ef68a1 100644
--- a/src/common/dns_utils.h
+++ b/src/common/dns_utils.h
@@ -30,6 +30,7 @@
#include <vector>
#include <string>
#include <functional>
+#include <boost/optional/optional_fwd.hpp>
namespace tools
{
@@ -143,7 +144,7 @@ private:
* @return A vector of strings containing the requested record; or an empty vector
*/
// TODO: modify this to accommodate DNSSEC
- std::vector<std::string> get_record(const std::string& url, int record_type, std::string (*reader)(const char *,size_t), bool& dnssec_available, bool& dnssec_valid);
+ std::vector<std::string> get_record(const std::string& url, int record_type, boost::optional<std::string> (*reader)(const char *,size_t), bool& dnssec_available, bool& dnssec_valid);
/**
* @brief Checks a string to see if it looks like a URL