diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-16 11:02:28 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-16 11:02:28 +0200 |
commit | 140defd89f2c961fe72b9fb6b4eb7fba2a89ce71 (patch) | |
tree | 85d0d7e1ae90abe9cb9e3a3545e9872c484566fa /src/common/dns_utils.h | |
parent | Merge pull request #4777 (diff) | |
parent | dns_utils: do not exit if DNS records are corrupt (diff) | |
download | monero-140defd89f2c961fe72b9fb6b4eb7fba2a89ce71.tar.xz |
Merge pull request #4778
71eb32a9 dns_utils: do not exit if DNS records are corrupt (moneromooo-monero)
Diffstat (limited to 'src/common/dns_utils.h')
-rw-r--r-- | src/common/dns_utils.h | 3 |
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 |