Skip to content
Browse files

dns_utils: really add default DNSSEC servers on failure

Coverity 196597
  • Loading branch information...
moneromooo-monero committed Mar 20, 2019
1 parent f2f725d commit 223c6b0796cf0f04042c48103fe22ede3ea6c1a6
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/common/dns_utils.cpp
@@ -293,9 +293,8 @@ DNSResolver::DNSResolver() : m_data(new DNSResolverData())
m_data->m_ub_context = ub_ctx_create();
dns_public_addr = tools::dns_utils::parse_dns_public(DNS_PUBLIC);
for (const auto &ip: dns_public_addr)
ub_ctx_set_fwd(m_data->m_ub_context, string_copy(ip.c_str()));
for (const auto &ip: DEFAULT_DNS_PUBLIC_ADDR)
ub_ctx_set_fwd(m_data->m_ub_context, string_copy(ip));
ub_ctx_set_option(m_data->m_ub_context, string_copy("do-udp:"), string_copy("no"));
ub_ctx_set_option(m_data->m_ub_context, string_copy("do-tcp:"), string_copy("yes"));

0 comments on commit 223c6b0

Please sign in to comment.
You can’t perform that action at this time.