notes and guard

pull/19/head
Ryan Tharp 6 years ago
parent a0082e95bb
commit c40d5f4c4d

@ -30,6 +30,8 @@ struct dns_tracker
// FIXME: support multiple dns server contexts
dnsd_context *dnsd;
// rn we need 1 tracker per DNSd and each DNSd needs it's own IP
// actually we can bind once and use the tracker to sort
// but no way to tell what DNSd they want...
// std::map< llarp::Addr, std::unique_ptr< dnsc_answer_request > > dnsds;
// std::map< uint, dnsd_question_request * > daemon_request;
};

@ -255,6 +255,14 @@ extern "C"
// castBuf += 12;
llarp::LogDebug("msg id ", hdr->id);
llarp::LogDebug("msg qr ", (uint8_t)hdr->qr);
if(!udp)
{
llarp::LogError("no udp passed in to handler");
}
if(!addr)
{
llarp::LogError("no source addr passed in to handler");
}
if(hdr->qr)
{
llarp::LogDebug("handling as dnsc answer");

Loading…
Cancel
Save