Fix macos

We don't have a resolver on macos, so we were running through this loop
with fails == 0 == m_Impls.size() and throwing, crashing the process.

Early return to avoid the failure and fix macos crash.
pull/1969/head
Jason Rhinelander 2 years ago
parent b81ae95246
commit 4d920bb2e2
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -11,6 +11,8 @@ namespace llarp::dns
void
Multi_Platform::set_resolver(unsigned int index, llarp::SockAddr dns, bool global)
{
if (m_Impls.empty())
return;
size_t fails{0};
for (const auto& ptr : m_Impls)
{

Loading…
Cancel
Save