diff options
author | Jeffrey Ryan <jeffreyryan@tutanota.com> | 2022-11-21 15:54:23 -0600 |
---|---|---|
committer | Jeffrey Ryan <jeffreyryan@tutanota.com> | 2022-11-21 15:54:23 -0600 |
commit | 8687da6276e1353e4dc68ab1ef32197223495202 (patch) | |
tree | fa560b21b8bbd867af6acc8f0f81a917b5086a4b /src/common/dns_utils.h | |
parent | Merge pull request #8593 (diff) | |
download | monero-8687da6276e1353e4dc68ab1ef32197223495202.tar.xz |
common: DNSResolver can handle hostnames without dot characters
Unrelated, but similar code-wise to #8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
Diffstat (limited to 'src/common/dns_utils.h')
-rw-r--r-- | src/common/dns_utils.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/dns_utils.h b/src/common/dns_utils.h index f9507b42a..81079ba30 100644 --- a/src/common/dns_utils.h +++ b/src/common/dns_utils.h @@ -159,15 +159,6 @@ private: // TODO: modify this to accommodate DNSSEC 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 - * - * @param addr the string to be checked - * - * @return true if it looks enough like a URL, false if not - */ - bool check_address_syntax(const char *addr) const; - DNSResolverData *m_data; }; // class DNSResolver |