From 8db40be29c814b61cc3d5a3dc9850e9f9a855cf5 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 2 Oct 2025 07:37:27 -0700 Subject: [PATCH] client: log error for context with no search destinations --- src/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index ef3792e..04c1970 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -607,6 +607,9 @@ ContextImpl::ContextImpl(const Config& conf, const evbase& tcp_loop) nameServers.emplace_back(saddr, nullptr); } + if(searchDest.empty() && nameServers.empty()) + log_err_printf(setup, "Client context created with no search destinations. Nothing much will happen now%s", "\n"); + const auto cb([this](const UDPManager::Beacon& msg) { onBeacon(msg); });