Add an error message on DNS resolution failure for IPv6 only

This commit is contained in:
louiz’
2019-07-29 23:14:47 +02:00
parent 3621458d3f
commit ce7b8395d0
+6
View File
@@ -213,6 +213,12 @@ void Resolver::on_hostname6_resolved(dns_rr_a6 *result)
this->call_getaddrinfo(buf, this->port.data(), AI_NUMERICHOST); this->call_getaddrinfo(buf, this->port.data(), AI_NUMERICHOST);
} }
} }
else
{
const auto error = dns_error_messages.find(status);
if (error != end(dns_error_messages))
this->error_msg = error->second;
}
} }
void Resolver::after_resolved() void Resolver::after_resolved()