aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-04-02 16:29:47 +0200
committerRiccardo Spagni <ric@spagni.net>2015-04-02 16:31:13 +0200
commitea32a84e45763f70d3f8dc4d831baeee58c1185a (patch)
tree8a1dbfc3c76a6c116c6a379d8e49b8f63b3c2716 /src
parentupdate hardcoded fallback seeds (diff)
parentFixed DNS resolution bug in Windows (diff)
downloadmonero-ea32a84e45763f70d3f8dc4d831baeee58c1185a.tar.xz
Merge pull request #251
c0de96f Fixed DNS resolution bug in Windows (Thomas Winget)
Diffstat (limited to 'src')
-rw-r--r--src/common/dns_utils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp
index 4ab93cce8..2ac49bf4b 100644
--- a/src/common/dns_utils.cpp
+++ b/src/common/dns_utils.cpp
@@ -162,11 +162,9 @@ DNSResolver::DNSResolver() : m_data(new DNSResolverData())
// init libunbound context
m_data->m_ub_context = ub_ctx_create();
- char empty_string = '\0';
-
// look for "/etc/resolv.conf" and "/etc/hosts" or platform equivalent
- ub_ctx_resolvconf(m_data->m_ub_context, &empty_string);
- ub_ctx_hosts(m_data->m_ub_context, &empty_string);
+ ub_ctx_resolvconf(m_data->m_ub_context, NULL);
+ ub_ctx_hosts(m_data->m_ub_context, NULL);
ub_ctx_add_ta(m_data->m_ub_context, ::get_builtin_ds());
}