Skip to content

Commit

Permalink
Fixup error message.
Browse files Browse the repository at this point in the history
Looks like the extra MWARNING was supposed to be guarded by the if statement.
  • Loading branch information
ComputeryPony authored Jun 27, 2023
1 parent 0a1eaf2 commit 1c20198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/dns_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,10 @@ std::vector<std::string> DNSResolver::get_record(const std::string& url, int rec
dnssec_available = (result->secure || result->bogus);
dnssec_valid = result->secure && !result->bogus;
if (dnssec_available && !dnssec_valid)
{
MWARNING("Invalid DNSSEC " << get_record_name(record_type) << " record signature for " << url << ": " << result->why_bogus);
MWARNING("Possibly your DNS service is problematic. You can have monerod use an alternate via env variable DNS_PUBLIC. Example: DNS_PUBLIC=tcp://9.9.9.9");
}
if (result->havedata)
{
for (size_t i=0; result->data[i] != NULL; i++)
Expand Down

0 comments on commit 1c20198

Please sign in to comment.