client: log error for context with no search destinations

This commit is contained in:
Michael Davidsaver
2025-10-03 16:42:12 -07:00
parent adab53e5c5
commit 8db40be29c
+3
View File
@@ -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);
});