Merge pull request #1817 from majestrate/disable-upstream-ip6-dns-2021-12-03

disable ip6 upstream dns in libunbound
This commit is contained in:
Jeff 2021-12-04 09:19:34 -05:00 committed by GitHub
commit 5890c99a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ namespace llarp::dns
return false;
}
// disable ip6 for upstream dns
ub_ctx_set_option(unboundContext, "prefer-ip6", "0");
// enable async
ub_ctx_async(unboundContext, 1);
#ifdef _WIN32
runner = std::thread{[&]() {