don't cache dns result if we have an address mapped.

we want to use dns to trigger a call to EnsurePathTo
pull/1658/head
Jeff Becker 3 years ago
parent 5e761235d6
commit 4994208fbc
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -228,7 +228,7 @@ namespace llarp
std::function<void(dns::Message)> reply,
bool sendIPv6)
{
if (ctx or HasAddress(addr))
if (ctx)
{
huint128_t ip = ObtainIPForAddr(addr);
query->answers.clear();

Loading…
Cancel
Save