aboutsummaryrefslogtreecommitdiff
path: root/src/common/dns_utils.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-01-11 11:41:56 -0500
committerluigi1111 <luigi1111w@gmail.com>2023-01-11 11:41:56 -0500
commit153819fc4ce8b2af1f4593ba139ee4c86ff310c8 (patch)
tree8fc3fd65ba42e6f7ca09e8972841be48d34d4d49 /src/common/dns_utils.cpp
parentcbc5cf43f2e40940f6a3e42b9d833753305baf35 (diff)
parent2c2432245f40377ee31c21e42d34a473f09601fe (diff)
downloadmonzero-core-153819fc4ce8b2af1f4593ba139ee4c86ff310c8.tar.gz
monzero-core-153819fc4ce8b2af1f4593ba139ee4c86ff310c8.tar.xz
monzero-core-153819fc4ce8b2af1f4593ba139ee4c86ff310c8.zip
Merge pull request #8649
2c24322 DNSResolver: fix not handling hostnames without dot characters [release] (Jeffrey Ryan)
Diffstat (limited to 'src/common/dns_utils.cpp')
-rw-r--r--src/common/dns_utils.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp
index 7bb1781d4..44e4258d9 100644
--- a/src/common/dns_utils.cpp
+++ b/src/common/dns_utils.cpp
@@ -327,11 +327,6 @@ std::vector<std::string> DNSResolver::get_record(const std::string& url, int rec
dnssec_available = false;
dnssec_valid = false;
- if (!check_address_syntax(url.c_str()))
- {
- return addresses;
- }
-
// destructor takes care of cleanup
ub_result_ptr result;
@@ -414,16 +409,6 @@ DNSResolver DNSResolver::create()
return DNSResolver();
}
-bool DNSResolver::check_address_syntax(const char *addr) const
-{
- // if string doesn't contain a dot, we won't consider it a url for now.
- if (strchr(addr,'.') == NULL)
- {
- return false;
- }
- return true;
-}
-
namespace dns_utils
{